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

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 години
committed by GitHub
родител
ревизия
dfbe941ddd
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. +5
    -2
      src/rebar_prv_as.erl

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

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

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