-
Notifications
You must be signed in to change notification settings - Fork 426
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
dotenv-path unexpectedly loads .env from parent directory #2257
Comments
This is an annoying consequence of the way that the various dotenv settings work. Setting any So, even though you This is definitely not ideal behavior, and if I could go back in time, I would definitely make Part of the reason that these settings are weird and continue to be weird is that someone could be relying on the existing behavior, and so changing them to be less weird might break someone's setup. Probably the best way to fix this would be to introduce a new setting (sigh) which if used would provide better behavior. |
I'm using [email protected] on Mac.
The documentation states:
I tried configuring my justfile as follows:
There is no
.env
file in the current directory, but in the parent directory, I created a bogus.env
file, e.g.In the current directory with my
justfile
, I get this error:Expectation:
dotenv-path
should only load a.env
file from the specified path.The text was updated successfully, but these errors were encountered: