瀏覽代碼

Ignore `global` in empty profiles warning for `as`

pull/2368/head
Fred Hebert 4 年之前
父節點
當前提交
e037ec8c8f
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/rebar_prv_as.erl

+ 4
- 2
src/rebar_prv_as.erl 查看文件

@ -101,5 +101,7 @@ 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"].

Loading…
取消
儲存