Skip to content

Commit e434d5a

Browse files
committed
Remove rebar3_eqc when using rebar 2.x
1 parent ba2f7f7 commit e434d5a

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

rebar.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"src/msgpack_ext.erl"
1414
]}.
1515

16+
{plugins, [
17+
rebar3_eqc,
18+
rebar3_hex
19+
]}.
20+
1621
%% {port_sources, ["c_src/*.c"]}.
1722
%% {port_env, [
1823
%% %% Make sure to set -fPIC when compiling leveldb

rebar.config.script

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
case application:get_key(rebar, vsn) of
2-
{ok, "3."++_} ->
3-
PLUGINS = {plugins, [
4-
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
5-
rebar3_hex
6-
]},
7-
lists:keystore(plugins, 1, CONFIG, PLUGINS);
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});
87
_ ->
98
CONFIG
109
end.

0 commit comments

Comments
 (0)