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
|
# and a series of dot separated identifiers
|
||||||
pre_release =
|
pre_release =
|
||||||
[git_pre_release, branch_name]
|
[git_pre_release, branch_name]
|
||||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
|
||||||
|> Enum.filter(fn string -> string && string != "" end)
|
|> Enum.filter(fn string -> string && string != "" end)
|
||||||
|
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||||
|> Enum.join(".")
|
|> Enum.join(".")
|
||||||
|> (fn
|
|> (fn
|
||||||
"" -> nil
|
"" -> nil
|
||||||
|
@ -319,8 +319,8 @@ defp version(version) do
|
||||||
# Build metadata, denoted with a plus sign
|
# Build metadata, denoted with a plus sign
|
||||||
build_metadata =
|
build_metadata =
|
||||||
[build_name, env_name]
|
[build_name, env_name]
|
||||||
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
|
||||||
|> Enum.filter(fn string -> string && string != "" end)
|
|> Enum.filter(fn string -> string && string != "" end)
|
||||||
|
|> Enum.map(&String.replace(&1, identifier_filter, "-"))
|
||||||
|> Enum.join(".")
|
|> Enum.join(".")
|
||||||
|> (fn
|
|> (fn
|
||||||
"" -> nil
|
"" -> nil
|
||||||
|
|
Loading…
Reference in a new issue