Open leonlee2007 opened 2 years ago
rebar.config
{erl_opts, [debug_info]}.
{checkouts_dir, "deps"}.
{deps, []}.
{relx, [
{release,
{a, "0.1.0"},
[a, sasl],
[{overlay, [{copy, "test_data", "test_data"}]}] %overlay does not take effect
},
{release, {b, "0.1.0"}, [b, sasl]},
{overlay,[ {copy, "test_dir", "test_dir"} ] },
{dev_mode, true},
{include_erts, false},
{extended_start_script, true},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"}
]}.
{profiles, [{prod, [{relx, [{dev_mode, false},
{include_erts, false}]}]
}]
}.
When upgrading rebar3 of an umbrella project from 3.12 to 3.19, I encounter a problem: Packaging with
rebar3 as prod tar
, it is found that the overlay configured in the app does not replace the general overlay. butrebar3 as prod release
is ok.Try to modify the code of relx.erl: https://github.com/erlware/relx/blob/main/src/relx.erl
Change it to the following:
After recompiling rebar3, the problem is solved.