Skip to content

Instantly share code, notes, and snippets.

@joaohf
Created November 8, 2023 20:57
Show Gist options
  • Save joaohf/bb5b3966de545a6f8cf70e3697712c0c to your computer and use it in GitHub Desktop.
Save joaohf/bb5b3966de545a6f8cf70e3697712c0c to your computer and use it in GitHub Desktop.
rebar3 with private hexpm
In order to create a private hexpm follow the steps from: https://hex.pm/docs/self-hosting
Once you get the file server running, it's time to configure your rebar.config like the following:
```
{erl_opts, [debug_info]}.
{deps, [decimal, relsyncd]}.
{shell, [
% {config, "config/sys.config"},
{apps, [test]}
]}.
{hex, [
{repos, [
#{name => <<"acme">>,
repo_verify => false,
repo_url => <<"http://localhost:8000">>,
repo_public_key => <<"your hexpm public key here">>
}
]}
]}.
```
References: https://github.com/erlang/rebar3/pull/2346
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment