Selaa lähdekoodia

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 vuotta sitten
committed by GitHub
vanhempi
commit
dfbe941ddd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. +5
    -2
      src/rebar_prv_as.erl

+ 5
- 2
src/rebar_prv_as.erl Näytä tiedosto

@ -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.

Ladataan…
Peruuta
Tallenna