summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-11-22 11:46:13 -0600
committerTristan Sloughter <t@crashfast.com>2015-11-23 07:44:24 -0600
commitd67ea4a51130a47df397264881ed6b8d774195ad (patch)
tree05dfc8a87b97154acf2cf2bffb72053d5fe4fb45
parent740d8a3c74c26fc91370fd83cd81807d0d29e7b0 (diff)
just delete erlware_commons rebar.config.script, it isn't needed for rebar3
-rwxr-xr-xbootstrap7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 25bd658..a26ebff 100755
--- a/bootstrap
+++ b/bootstrap
@@ -15,6 +15,7 @@ main(_Args) ->
%% Fetch and build deps required to build rebar3
BaseDeps = [{providers, []}
,{getopt, []}
+ ,{cf, []}
,{erlware_commons, ["ec_dictionary.erl", "ec_vsn.erl"]}
,{certifi, []}],
Deps = get_deps(),
@@ -68,6 +69,12 @@ fetch_and_compile({Name, ErlFirstFiles}, Deps) ->
{Name, _, Source} ->
ok = fetch(Source, Name)
end,
+
+ %% Hack: erlware_commons depends on a .script file to check if it is being built with
+ %% rebar2 or rebar3. But since rebar3 isn't built yet it can't get the vsn with get_key.
+ %% So we simply make sure that file is deleted before compiling
+ file:delete("_build/default/lib/erlware_commons/rebar.config.script"),
+
compile(Name, ErlFirstFiles).
fetch({pkg, Name, Vsn}, App) ->