Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a
settings.dotenv_parent_resolutionoption toconfig.tomlthat controls whether.envfiles are looked up in parent directories. When it's not set, the CLI keeps today's behavior (walk up from the current directory) and prints a warning on every run explaining that the default will becomefalsein the next major release, with a snippet showing what to add to the config.--quietsuppresses the warning. The CLI never writes this setting itself.Why
Users who want a tighter setup can set
dotenv_parent_resolution = falseso that only a.envin the current directory is ever loaded, making it explicit which values feed into a command. The warning nudges everyone else to make that choice before the default changes.Known limitations
The setting is read before
.envis loaded, so aSTELLAR_CONFIG_HOMEdefined in the nearest.envis peeked at to find the rightconfig.toml. A parent.envthat setsSTELLAR_CONFIG_HOMEtherefore points at the config that decides whether that same file is loaded.