Kaynağa Gözat

Merge pull request #528 from tsloughter/plugin_paths

fix path storing for plugins, fixes #527
pull/530/head
Fred Hebert 10 yıl önce
ebeveyn
işleme
7675a4d33f
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. +5
    -4
      src/rebar_plugins.erl

+ 5
- 4
src/rebar_plugins.erl Dosyayı Görüntüle

@ -21,14 +21,15 @@ project_apps_install(State) ->
lists:foldl(fun(Profile, StateAcc) ->
Plugins = rebar_state:get(State, {plugins, Profile}, []),
handle_plugins(Profile, Plugins, StateAcc),
lists:foldl(fun(App, StateAcc1) ->
StateAcc1 = handle_plugins(Profile, Plugins, StateAcc),
lists:foldl(fun(App, StateAcc2) ->
AppDir = rebar_app_info:dir(App),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:new(), C, AppDir),
Plugins2 = rebar_state:get(S, {plugins, Profile}, []),
handle_plugins(Profile, Plugins2, StateAcc1)
end, StateAcc, ProjectApps)
handle_plugins(Profile, Plugins2, StateAcc2)
end, StateAcc1, ProjectApps)
end, State, Profiles).
-spec install(rebar_state:t()) -> rebar_state:t().

Yükleniyor…
İptal
Kaydet