We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Including dot files in the hex package archive
almirsarajcic
Created
There is a flag you can pass to the mix archive.build
command to include dot (“hidden”) files in your archive: --include-dot-files
. The problem is, hex.build
command doesn’t support that flag.
Recently, I learned that when running mix hex.build
, the command uses aliases defined in the project’s mix.exs
file. That allowed me to create an alias that includes the flag.
defp aliases do
[
"archive.build": "archive.build --include-dot-files",
]
end
Related: https://elixirdrops.net/d/Q1PiUYpj
Thanks to José Valim for the solution:
https://github.com/elixir-lang/elixir/issues/13994
Copy link
copied to clipboard