Closed efine closed 7 years ago
I found that #525 fixed this issue. However, because v3.21.1 is the last relx release dated October 7, and #525 is later than that, this fix hasn't made it into rebar3 yet. Closing this issue as a duplicate.
@efine thanks for the detailed report and sorry for the delay, i was about to mention #525 but haven't been able to find the time for it, we'll try and cut a new release with this fix asap
Note
This was originally opened on rebar3, but moved here at @ferd's suggestion.
Current behaviour
I'm building https://github.com/SilentCircle/scpf.git (tag
v2.0.0-alpha
) using cowbuilder under Debian jessie. It builds with no problem when I run the build on my development system using either of these commands:dpkg-buildpackage -us -uc
make tar REBAR_PROFILE=prod
However, when I build it as a debian package on our build system (using
cowbuilder
), on which the standard Debian Erlang 18.3 gets installed, it fails.rebar3
seems to be trying to delete the ERTS source tree, which I suspect doesn't exist in the standard Debian installation (it's hard to tell because the build system deletes the build environment right after it finishes). On my development system, I am using the same version of Erlang, but installed usingkerl
, so the source directory is there.The line reported in the crash is
rlx_prv_assembler.erl:510
:Environment
Stack trace
Rebar3 report
Expected behaviour
If this is indeed the issue, my suggestion would be not to make it crash if the directory just doesn't exist in the first place. The code of
ec_file:remove/2
seems to return an error in this situation.