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

.env-file support should have a flag to override pre-existing env-variables #2613

Open
woutervh opened this issue Jan 30, 2025 · 0 comments
Open

Comments

@woutervh
Copy link

I would love to see a setting to read .env-file to override/not-override pre-existing env-variables

e.g:

# load environment variables from .env file
set dotenv-filename := ".env"
set dotenv-load := true
set dotenv-enforce:= true     # to enforce the values set in .env to override pre-existing env-variables

current options:

  • dotenv-filename | string | - | Load a .env file with a custom name, if present.
  • dotenv-load | boolean | false | Load a .env file, if present.
  • dotenv-path | string | - | Load a .env file from a custom path and error if not present. Overrides dotenv-filename.
  • dotenv-required | boolean | false | Error if a .env file isn’t found.

see also #2597

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