bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 398 forks source link

Do not overwrite existing vm.args file on release.init #585

Closed mobileoverlord closed 5 years ago

mobileoverlord commented 5 years ago

Steps to reproduce

mix nerves.new test_app
...
Fetch and install dependencies? [Yn] Y

rel/vm.args file that nerves needs is overwritten by the one from distillery

Description of issue

The Nerves new project generator includes a custom release config.exs and a customized vm.args file. When mix release.init is called, the vm.args file is overwritten by the version Nerves needs. This is causing all new projects to be generated to fail to boot Nerves devices. Distillery should not overwrite existing files.

bitwalker commented 5 years ago

Sorry about that, this came in via PR, usually I'm careful about this kind of thing :( - a new release has been pushed to Hex with the fix.