diff options
author | Bryan Paxton <starbelly@pobox.com> | 2019-07-30 07:16:37 -0500 |
---|---|---|
committer | Bryan Paxton <starbelly@pobox.com> | 2019-07-30 07:20:32 -0500 |
commit | a24fb3486917a1d0e34b26a2a7cc37b2e855a392 (patch) | |
tree | 1e628d5f60e78e13daffab74c7d904b2cca75146 /src/r3_hex_repo.erl | |
parent | dab233d6edeef2e15b8fcd4616ac01fbaea7e664 (diff) |
Update vendored in hex_core to version 0.5.1
version 0.5.1 is a maintenance release of hex_core specifically for
rebar3 which contains a configuration update. Prior to v0.5.1 if no
repo_organization key was set this could result in a function clause
error. The behavior is to now set repo_organization to undefined in
this case.
Diffstat (limited to 'src/r3_hex_repo.erl')
-rw-r--r-- | src/r3_hex_repo.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/r3_hex_repo.erl b/src/r3_hex_repo.erl index dd8264f..0075e7f 100644 --- a/src/r3_hex_repo.erl +++ b/src/r3_hex_repo.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_repo). -export([ @@ -161,7 +161,9 @@ tarball_url(Config, Name, Version) -> build_url(#{repo_url := URI, repo_organization := Org}, Path) when is_binary(Org) -> <<URI/binary, "/repos/", Org/binary, "/", Path/binary>>; build_url(#{repo_url := URI, repo_organization := undefined}, Path) -> - <<URI/binary, "/", Path/binary>>. + <<URI/binary, "/", Path/binary>>; +build_url(Config, Path) -> + build_url(Config#{repo_organization => undefined}, Path). tarball_filename(Name, Version) -> <<Name/binary, "-", Version/binary, ".tar">>. |