build: avoid loading local app beams from default profile
This commit is contained in:
parent
74d0436fbf
commit
c94b639886
15
build
15
build
|
@ -120,8 +120,15 @@ make_docs() {
|
|||
halt(0)."
|
||||
}
|
||||
|
||||
assert_no_compile_time_only_deps() {
|
||||
:
|
||||
assert_no_excluded_deps() {
|
||||
if [ "$PROFILE" != 'emqx-enterprise' ]; then
|
||||
return 0
|
||||
fi
|
||||
local rel_dir="_build/$PROFILE/rel/emqx/lib"
|
||||
if [ -d "$rel_dir"/emqx_telemetry-* ]; then
|
||||
echo "emqx_telemetry should not be included in $PROFILE"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
just_compile() {
|
||||
|
@ -139,7 +146,7 @@ make_rel() {
|
|||
just_compile
|
||||
# now assemble the release tar
|
||||
./rebar3 as "$PROFILE" "$release_or_tar"
|
||||
assert_no_compile_time_only_deps
|
||||
assert_no_excluded_deps
|
||||
}
|
||||
|
||||
make_elixir_rel() {
|
||||
|
@ -152,7 +159,7 @@ make_elixir_rel() {
|
|||
local.rebar rebar3 "${PWD}/rebar3" --if-missing --force, \
|
||||
deps.get
|
||||
mix release --overwrite
|
||||
assert_no_compile_time_only_deps
|
||||
assert_no_excluded_deps
|
||||
}
|
||||
|
||||
## extract previous version .tar.gz files to _build/$PROFILE/rel/emqx before making relup
|
||||
|
|
Loading…
Reference in New Issue