Open wojtekmach opened 3 years ago
I was able to set the desired configuration by editing the config file:
%% ~/.config/rebar3/rebar.config
{plugins, [{rebar3_hex, {git, "git://github.com/tsloughter/rebar3_hex.git"}}]}.
{hex, [
{repos, [
#{
name => <<"test_repo">>,
api_key => <<"secret">>,
api_url => <<"http://localhost:4000">>}]}]}.
At the same time (@tsloughter, if you prefer I can open different issues), with rebar 3.14.3 on Erlang/OTP 21 Erts 10.3.5.15 + rebar3_hex 6.10.3:
rebar3 hex key -a
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
@wojtekmach Yeah, I think I'm going to do a PR to rebar3.org docs and to pull out all that documentation around commands that have yet to be implemented. It's quite confusing. Better to have no docs with a plan to get implemented vs docs out there that suggest "this should work" IMO.
@paulo-ferraz-oliveira Yes, please open a separate issue so we can keep scope small. It should not crash.
Will do.
I tried following
http://rebar3.org/docs/package_management/hex_package_management/#config
but it doesn't work:
I'm on: