diff --git a/rebar.config b/rebar.config index 62bceca..9fe6566 100644 --- a/rebar.config +++ b/rebar.config @@ -48,7 +48,7 @@ ]}. {deps, [ - {goldrush, ".*", {git, "https://github.com/DeadZen/goldrush.git", {tag, "0.1.9"}}} + {goldrush, "0.1.9"} ]}. {xref_checks, []}. @@ -56,4 +56,3 @@ {cover_enabled, true}. {edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}. - diff --git a/rebar.config.script b/rebar.config.script new file mode 100644 index 0000000..cefdea2 --- /dev/null +++ b/rebar.config.script @@ -0,0 +1,10 @@ +case erlang:function_exported(rebar3, main, 1) of + true -> % rebar3 + CONFIG; + false -> % rebar 2.x or older + %% Rebuild deps, possibly including those that have been moved to + %% profiles + [{deps, [ + {goldrush, ".*", {git, "https://github.com/DeadZen/goldrush.git", {tag, "0.1.9"}}} + ]} | lists:keydelete(deps, 1, CONFIG)] +end.