When doing include_erts: "some/path", the previous code would have included only the applications from the Erlang/OTP distrubution specified as path, but not those from the mix.exs (fixes #574).
As all the expected applications are already assembled in tmpdir, simply adding the contents of tmpdir/lib in all non-false include_erts cases seems to be OK.
Checklist
[x] (not relevent here) New functions have typespecs, changed functions were updated
[x] (not relevent here) Same for documentation, including moduledocs
[ ] Tests were added or updated to cover changes
[x] Commits were squashed into a single coherent commit
Licensing/Copyright
By submitting this PR, you agree to the following statement, please read before submission!
I certify that I own, and have sufficient rights to contribute, all source code and
related material intended to be compiled or integrated with the source code for Distillery
(the "Contribution"). My Contribution is licensed under the MIT License.
NOTE: If you submit a PR and remove the statement above, your PR will be rejected. For your PR to be
considered, it must contain your agreement to license under the MIT license.
Summary of changes
When doing
include_erts: "some/path"
, the previous code would have included only the applications from the Erlang/OTP distrubution specified aspath
, but not those from themix.exs
(fixes #574).As all the expected applications are already assembled in
tmpdir
, simply adding the contents oftmpdir/lib
in all non-falseinclude_erts
cases seems to be OK.Checklist
Licensing/Copyright
By submitting this PR, you agree to the following statement, please read before submission!
I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for Distillery (the "Contribution"). My Contribution is licensed under the MIT License.
NOTE: If you submit a PR and remove the statement above, your PR will be rejected. For your PR to be considered, it must contain your agreement to license under the MIT license.