chore: stop tracking .envrc - #26
Closed
AlexHardAtWork wants to merge 1 commit into
Closed
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
Stop tracking
.envrcand add it to.gitignore. The file stays on disk — only thetracking is dropped.
Why
.envrcis per-developer environment config, but it is committed, so every localadjustment (a
DIRENV_WARN_TIMEOUT, an extraexport, adotenvline) shows up as a dirtyworktree and can be committed by accident.
It is also inconsistent with how the repo already handles environment config:
.envisgitignored and
.env.exampleis the tracked template —cp .env.example .envis step oneof setup in both
README.mdandCONTRIBUTING.md..envrcis the one env file thatdoesn't follow that rule.
For contributors
Pulling this deletes your local
.envrc, since git removes the file it no longer tracks.Restore it once and it will stay:
If we would rather keep a starting point in the repo, a follow-up can add
.envrc.examplealongside
.env.exampleand document it inCONTRIBUTING.md.