Created
November 8, 2023 20:57
-
-
Save joaohf/bb5b3966de545a6f8cf70e3697712c0c to your computer and use it in GitHub Desktop.
rebar3 with private hexpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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