From 677b23b13f47c885694ff45c79d3a6042507e38f Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 2 Aug 2026 15:28:53 +0200 Subject: [PATCH] Update Elixir.gitignore to match modern standards 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 (https://github.com/elixir-lang/elixir/pull/13871). Preserve additional patterns added in https://github.com/github/gitignore/pull/2132, https://github.com/github/gitignore/pull/2611, and https://github.com/github/gitignore/pull/2872, adding comments to match the style of the rest of the file. --- Elixir.gitignore | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/Elixir.gitignore b/Elixir.gitignore index b263cd10f3..977848c837 100644 --- a/Elixir.gitignore +++ b/Elixir.gitignore @@ -1,10 +1,32 @@ -/_build -/cover -/deps -/doc -/.fetch +# The directory Mix will write compiled artifacts to. +/_build/ + +# If you run "mix test --cover", coverage assets end up here. +/cover/ + +# The directory Mix downloads your dependencies sources to. +/deps/ + +# Where third-party dependencies like ExDoc output generated docs. +/doc/ + +# Temporary files, for example, from tests. +/tmp/ + +# If the VM crashes, it generates a dump, let's ignore it too. erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). *.ez + +# Ignore package tarball (built via "mix hex.build"). +*.tar + +# Compiled files (usually in /_build/). *.beam + +# Sensitive configuration, common convention in older Phoenix applications. /config/*.secret.exs + +# Language Server temporary files. .elixir_ls/