Преглед на файлове

Merge pull request #2182 from dtip/hex-config-override

Allow users to override default hex auth config
pull/2203/head
Fred Hebert преди 5 години
committed by GitHub
родител
ревизия
59adc60648
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/rebar_hex_repos.erl

+ 2
- 2
src/rebar_hex_repos.erl Целия файл

@ -50,8 +50,8 @@ get_repo_config(RepoName, State) ->
get_repo_config(RepoName, Repos).
merge_with_base_and_auth(Repos, BaseConfig, Auth) ->
[maps:merge(maps:get(maps:get(name, Repo), Auth, #{}),
maps:merge(Repo, BaseConfig)) || Repo <- Repos].
[maps:merge(maps:merge(Repo, BaseConfig),
maps:get(maps:get(name, Repo), Auth, #{})) || Repo <- Repos].
%% A user's list of repos are merged by name while keeping the order
%% intact. The order is based on the first use of a repo by name in the

Зареждане…
Отказ
Запис