erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

deprecated rebar_utils:vcs_vsn/3. #124

Closed benoitc closed 5 years ago

benoitc commented 5 years ago

I did a rebar3 local upgrade followed by a rebar3 plugins upgrade rebar3_hex to fix the following error:

===> Using deprecated rebar_utils:vcs_vsn/3. Please upgrade your plugins.
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: undef
===> Stack trace to the error location:
[{rebar3_hex_utils,hex_home,[],[]},
 {rebar3_hex_config,path,0,
                    [{file,"/Users/benoitc/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_config.erl"},
                     {line,78}]},
 {rebar3_hex_config,read,0,
                    [{file,"/Users/benoitc/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_config.erl"},
                     {line,81}]},
 {rebar3_hex_config,auth,0,
                    [{file,"/Users/benoitc/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_config.erl"},
                     {line,109}]},
 {rebar3_hex_pkg,publish,6,
                 [{file,"/Users/benoitc/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_pkg.erl"},
                  {line,182}]},
 {rebar3_hex_pkg,do_,2,
                 [{file,"/Users/benoitc/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_pkg.erl"},
                  {line,79}]},
 {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
 {rebar_core,do,2,
             [{file,"/opt/rebar3-3.11.1/src/rebar_core.erl"},{line,154}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`

But it didn't fix it .

I believe I'm using the last version of rebar3

± |master ?:3 ✗| →  rebar3 --version
rebar 3.11.1 on Erlang/OTP 22 Erts 10.4.3

It looks like I am using latest rebar3_hex:

± |master ?:3 ✗| → rebar3 plugins upgrade rebar3_hex
===> No upgrade needed for rebar3_hex
===> No upgrade needed for hex_core
===> No upgrade needed for verl

What do I miss?

benoitc commented 5 years ago

it seems an issue with rebar3:

± |master ?:1 ✗| → rebar3 plugins list
--- Global plugins ---
rebar3_hex (4.1.0)
rebar3_run (0.2.0)

± |master ?:1 ✗| → rebar3 plugins upgrade rebar3_hex
===> No upgrade needed for rebar3_hex
===> No upgrade needed for hex_core
===> No upgrade needed for verl
benoitc commented 5 years ago

removing rebar3_hex from the plugins folder and reinstalling did the trick. It looks like an issue in rebar3. So closing it for now.