소스 검색

Merge pull request #1650 from ferd/prevent-crash-on-dup-plugin-paths

Prevent hard crash on duplicate plugin paths
pull/1654/head
Fred Hebert 7 년 전
committed by GitHub
부모
커밋
a1b1df4ac9
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -0
      src/rebar_core.erl
  2. +1
    -1
      src/rebar_utils.erl

+ 1
- 0
src/rebar_core.erl 파일 보기

@ -136,6 +136,7 @@ process_command(State, Command) ->
do([], State) ->
{ok, State};
do([ProviderName | Rest], State) ->
?DEBUG("Provider: ~p", [ProviderName]),
%% Special providers like 'as', 'do' or some hooks may be passed
%% as a tuple {Namespace, Name}, otherwise not. Handle them
%% on a per-need basis.

+ 1
- 1
src/rebar_utils.erl 파일 보기

@ -766,7 +766,7 @@ remove_from_code_path(Paths) ->
[begin code:purge(M), code:delete(M) end || M <- Modules]
end,
code:del_path(Path)
end, Paths).
end, lists:usort(Paths)).
%% @doc Revert to only having the beams necessary for running rebar3 and
%% plugins in the path

불러오는 중...
취소
저장