From a24fb3486917a1d0e34b26a2a7cc37b2e855a392 Mon Sep 17 00:00:00 2001 From: Bryan Paxton Date: Tue, 30 Jul 2019 07:16:37 -0500 Subject: 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. --- src/r3_hex_repo.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/r3_hex_repo.erl') 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) -> <>; build_url(#{repo_url := URI, repo_organization := undefined}, Path) -> - <>. + <>; +build_url(Config, Path) -> + build_url(Config#{repo_organization => undefined}, Path). tarball_filename(Name, Version) -> <>. -- cgit v1.1