Skip to content

Commit 0ffd66b

Browse files
committed
Merge pull request #62 from msgpack/rebar2-compat
Remove rebar3_eqc when using rebar 2.x
2 parents ea521b1 + e434d5a commit 0ffd66b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
]}.
1515

1616
{plugins, [
17-
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
17+
rebar3_eqc,
1818
rebar3_hex
1919
]}.
2020

rebar.config.script

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
case application:get_key(rebar, vsn) of
2+
{ok, "2."++_V} ->
3+
%% Workarounds for rebar2 here
4+
{plugins, Plugins} = lists:keyfind(plugins, 1, CONFIG),
5+
NewPlugins = lists:delete(rebar3_eqc, Plugins),
6+
lists:keyreplace(plugins, 1, CONFIG, {plugins, NewPlugins});
7+
_ ->
8+
CONFIG
9+
end.

0 commit comments

Comments
 (0)