Skip to content

Commit

Permalink
Merge pull request #2732 from ferd/minor-warning-fixes
Browse files Browse the repository at this point in the history
Reduce warnings around bootstrap and DAG operations
  • Loading branch information
ferd authored Jul 21, 2022
2 parents a2ea0c5 + 0826c7b commit 048412e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/rebar/src/rebar_compiler_erl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ compile_info(Target) ->
CompileVsn = proplists:get_value(version, CompileInfo, "unknown"),
{ok, [{compiler_version, CompileVsn}
| proplists:get_value(options, CompileInfo, [])]};
{error, beam_lib, {file_error, _, enoent}=Reason} ->
%% It's normal not to find a given file if this is a first build
?DEBUG("Couldn't read debug info from ~p for reason: ~p", [Target, Reason]),
{error, Reason};
{error, beam_lib, Reason} ->
?WARN("Couldn't read debug info from ~p for reason: ~p", [Target, Reason]),
{error, Reason}
Expand Down
6 changes: 2 additions & 4 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ main(Args) ->
rm_rf("_build/prod"),
%% The same pattern happens with default/ as well, particularly when
%% developing new things.
%% Keep other deps in <profile>/lib for build environments like Nix
%% where internet access is disabled that deps are not downloadable.
rm_rf("_build/default/lib/rebar"),
rm_rf("_build/test/lib/rebar"),
rm_rf("_build/default/"),
rm_rf("_build/test/"),

filelib:ensure_dir("_build/bootstrap/lib/rebar/ebin/"),

Expand Down

0 comments on commit 048412e

Please sign in to comment.