Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't push after local build #320

Open
udihakim opened this issue Nov 17, 2023 · 0 comments
Open

Can't push after local build #320

udihakim opened this issue Nov 17, 2023 · 0 comments

Comments

@udihakim
Copy link

udihakim commented Nov 17, 2023

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant