Fix MIX_ENV=prod mix compile
This commit is contained in:
parent
a94460bb2b
commit
f3e77415cc
1 changed files with 2 additions and 2 deletions
4
mix.exs
4
mix.exs
|
@ -308,8 +308,8 @@ defp version(version) do
|
|||
# and a series of dot separated identifiers
|
||||
pre_release =
|
||||
[git_pre_release, branch_name]
|
||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||
|> Enum.filter(fn string -> string && string != "" end)
|
||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||
|> Enum.join(".")
|
||||
|> (fn
|
||||
"" -> nil
|
||||
|
@ -319,8 +319,8 @@ defp version(version) do
|
|||
# Build metadata, denoted with a plus sign
|
||||
build_metadata =
|
||||
[build_name, env_name]
|
||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||
|> Enum.filter(fn string -> string && string != "" end)
|
||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||
|> Enum.join(".")
|
||||
|> (fn
|
||||
"" -> nil
|
||||
|
|
Loading…
Reference in a new issue