Update .gitignore generated by 'mix new' - #13871
Merged
Merged
Conversation
The .gitignore file would reference '/.fetch' files, which caused some confusion (cf. https://elixir-lang.slack.com/archives/C03EPRA3B/p1727706411018609). Some research suggests that these files are no longer generated as of commit 59b6e2e so let's stop mentioning them in the .gitignore, too.
Member
|
💚 💙 💜 💛 ❤️ |
Contributor
|
Shouldn't this be kept around a bit more, for projects that are created today on the latest version, but are meant to be supporting multiple versions? |
Member
|
The projects created with Elixir 1.18 will have a requirement on Elixir ~> 1.18 anyway, so I think we are good. If someone wants to both downgrade the Elixir version AND change it via a dep, then they can add it back, although I think it may be quite rare. :) |
rhcarvalho
added a commit
to rhcarvalho/gitignore
that referenced
this pull request
Aug 2, 2026
Update Elixir.gitignore to match the upstream template for new Elixir projects. https://github.com/elixir-lang/elixir/blob/a9021b1c8d932fd5cf2339e4536c5c9ef024003f/lib/mix/lib/mix/tasks/new.ex#L307-L331 Remove `.fetch` which was also removed upstream (elixir-lang/elixir#13871). Preserve additional patterns added in github#2132, github#2611, and github#2872, adding comments to match the style of the rest of the file.
This was referenced Aug 2, 2026
rhcarvalho
added a commit
to praialabs/phoenix
that referenced
this pull request
Aug 4, 2026
Match Elixir upstream .gitignore template changes: - Update "3rd-party" to "third-party" in documentation comments (elixir-lang/elixir#8308) - Remove deprecated /.fetch entry and comment (elixir-lang/elixir#13871) - Move /tmp/ entry to appear above erl_crash.dump (elixir-lang/elixir#14439)
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.
The .gitignore file would reference '/.fetch' files, which caused some confusion (cf.
https://elixir-lang.slack.com/archives/C03EPRA3B/p1727706411018609).
Some research suggests that these files are no longer generated as of commit 59b6e2e so let's stop mentioning them in the .gitignore, too.