Skip to content

allow warning when a env var was not overwritten #531

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Apr 29, 2025

too many times I'm trying to debug someones issues and it's "oh you already set xyz api key in your env" 🤦
so Dotenv.load files, overwrite: :warn would tell them that it's already set.

... might also get annoying after a while 🤷 but wanted to raise an issue since this seems be a common gotcha

might want to make it set+warn instead, to keep the override is truthy behavior, lmk

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

Successfully merging this pull request may close these issues.

1 participant