Fix MIX_ENV=prod mix compile

This commit is contained in:
Alex Gleason 2022-04-27 13:42:39 -05:00
parent a94460bb2b
commit f3e77415cc
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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