diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-05-09 07:15:35 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-05-09 07:15:35 -0400 |
commit | 4673a992deeea9c676f506c81ff50df08fcd2615 (patch) | |
tree | 5ac4e5f0aa6283ac20a57bd7271321a03b73a20e | |
parent | 2e0f28f07f4b58757a813704bdfeb3c4f92d50f1 (diff) |
Restore default templates in bootstrapped rebar3
When allowing Dialyzer to work internally, we moved a bunch of
config (such as no_debug_info) to the prod profile, but the escript
included files remained locked onto the default profile.
Because the bootstrapping phase now happened in a prod run, the priv/
dirs were never created for the default profile unless a prior run
existed, which hid the bug from us.
This patch overrides the path on the prod profile so that we don't rely
on accidental leftovers for things to work on a bootstrap phase as a
dev.
-rw-r--r-- | rebar.config | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rebar.config b/rebar.config index 5d57c04..0ce4fb3 100644 --- a/rebar.config +++ b/rebar.config @@ -54,6 +54,10 @@ {bootstrap, []}, {prod, [ + {escript_incl_extra, [ + {"relx/priv/templates/*", "_build/prod/lib/"}, + {"rebar/priv/templates/*", "_build/prod/lib/"} + ]}, {erl_opts, [no_debug_info]}, {overrides, [ {override, erlware_commons, [ |