Explorar el Código

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 hace 4 años
cometido por GitHub
padre
commit
dfbe941ddd
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. +5
    -2
      src/rebar_prv_as.erl

+ 5
- 2
src/rebar_prv_as.erl Ver fichero

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

Cargando…
Cancelar
Guardar