Skip to content

Can't push after local build #320

Open
@udihakim

Description

@udihakim
  1. Start with a .env file and .env.me
  2. npx dotenv-vault local build
  3. .env.vault created
  4. npx dotenv-vault push

The result is:
x Aborted.
Code: EMPTY_DOTENV_VAULT
Suggestion: Run, npx dotenv-vault@latest new
› Error: Empty .env.vault (DOTENV_VAULT).

It seems like there are two types of .env.vault, one for local build and the other for distribution, they have to be compatible or there's something I am missing.

The use case is quite common, individual developers are working on their own branches, with a branch specific .env.vault that is getting committed to the repo (using pre-commit hook with local build command, only when the PR is approved and is merged to main branch the .env.vault is distributed by being pushed (using push command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions