Bundlex raises on empty native list
pagmerek opened this issue · 0 comments
pagmerek commented
Description
When bundlex is invoked with empty native list then this function concatenate "\n" to the empty list.
defp join_commands(commands, :unix) do
Enum.map_join(commands, " && \\\n", &"(#{&1})") <> "\n"
end
Since Elixir 1.14 Mix.shell().cmd("\n")
throws an error resulting in compile error because it tries to run following script
#!/bin/sh
(
)
somehow in 1.13.4 this was not a problem
How to reproduce?
- Make sure you are using Elixir 1.14 or newer
- Initialize a project with empty native list
defmodule Example.BundlexProject do
use Bundlex.Project
def project() do
[
natives: []
]
end
end
- Run mix compile
- Voila!