bitwalker / distillery

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

Fixes generated rel/config.exs when release name is not provided. #667

Closed jesseshieh closed 5 years ago

jesseshieh commented 5 years ago

When I run mix distillery.init, I get the following at the bottom of rel/config.exs. Notice the release names are missing.

release : do
  set version: current_version(:)
  set applications: [
    :runtime_tools
  ]
end

I think this is because of this recently changed line.

And related to this default value.

This ran fine when I tested it manually, but I had some trouble getting the integration tests to run on master or even the 2.0.14 tag so I'm not sure if this breaks anything else. I actually wanted to delete the nil default value instead and keep this line untouched, but I didn't feel confident it wouldn't break things since the tests don't run for me.