Ver código fonte

Merge pull request #2368 from ferd/ignore-global-profile-warning

Ignore `global` and `default` in empty profiles warning for `as`
pull/2373/head
Fred Hebert 4 anos atrás
committed by GitHub
pai
commit
dfbe941ddd
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 5 adições e 2 exclusões
  1. +5
    -2
      src/rebar_prv_as.erl

+ 5
- 2
src/rebar_prv_as.erl Ver arquivo

@ -101,5 +101,8 @@ warn_on_empty_profile(Profiles, State) ->
ProjectApps = rebar_state:project_apps(State),
DefinedProfiles = rebar_state:get(State, profiles, []) ++
lists:flatten([rebar_app_info:get(AppInfo, profiles, []) || AppInfo <- ProjectApps]),
[?WARN("No entry for profile ~ts in config.", [Profile]) ||
Profile <- Profiles, not(lists:keymember(list_to_atom(Profile), 1, DefinedProfiles))].
[?WARN("No entry for profile ~ts in config.", [Profile])
|| Profile <- Profiles,
not lists:keymember(list_to_atom(Profile), 1, DefinedProfiles),
Profile =/= "global", Profile =/= "default"],
ok.

Carregando…
Cancelar
Salvar