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

Clarify that dotenv-path-given env file is required #2099

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

casey
Copy link
Owner

@casey casey commented May 26, 2024

No description provided.

@casey casey enabled auto-merge (squash) May 26, 2024 23:05
@casey casey merged commit 8678565 into master May 26, 2024
5 checks passed
@casey casey deleted the dotenv-path-docs branch May 26, 2024 23:07
If `dotenv-path` is set, `just` will look for a file at the given path.
If `dotenv-path` is set, `just` will look for a file at the given path. It is
an error if a dotenv file is not found at `dotenv-path`, but not an error if a
dotenv file is not found with `dotenv-filename`.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the motivation behind the difference in logic?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just documenting the existing behavior. I'm not sure what the original motivation was.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I find it confusing that dotenv-path and dotenv-filename have this kind of behavioural difference. I think it would be better if both parameters had the same behaviour.


In a more general context, I find the presence of both dotenv-filename and dotenv-path a bit confusing. Isn't dotenv-filename basically a more limited version of dotenv-path (ignoring this specific difference in behaviour)? Perhaps it would make sense to deprecate dotenv-filename (removing it outright would probably break some justfiles)?

@FelixZY
Copy link

FelixZY commented May 27, 2024

For future readers: see also #2093 which prompted this PR

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.

2 participants