diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_cover.erl | 3 | ||||
-rw-r--r-- | src/rebar_prv_new.erl | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index 7412038..a279293 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -320,7 +320,7 @@ cover_compile(State, apps) -> AppDirs = app_dirs(Apps), cover_compile(State, lists:filter(fun(D) -> ec_file:is_dir(D) end, AppDirs)); cover_compile(State, Dirs) -> - rebar_utils:update_code(rebar_state:code_paths(State, all_deps), [soft_purge]), + rebar_paths:set_paths([deps], State), %% start the cover server if necessary {ok, CoverPid} = start_cover(), %% redirect cover output @@ -343,7 +343,6 @@ cover_compile(State, Dirs) -> ?WARN("Directory ~p error ~p", [Dir, Reason]) end end, Dirs), - rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)), ok. is_ignored(Dir, File, ExclMods) -> diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl index f632362..c6a1e9b 100644 --- a/src/rebar_prv_new.erl +++ b/src/rebar_prv_new.erl @@ -82,7 +82,9 @@ info() -> "Create rebar3 project based on template and vars.~n" "~n" "Valid command line options:~n" - " <template> [var=foo,...]~n", []). + " <template> [var=foo,...]~n" + "~n" + "See available templates with: `rebar3 new help`~n", []). strip_flags([]) -> []; strip_flags(["-"++_|Opts]) -> strip_flags(Opts); |