Skip to content

Commit

Permalink
Add more log regarding search options
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrosario committed Jan 19, 2024
1 parent 9f93aeb commit 518da95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rebar3_gpb_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ discover(AppDir, SourceDir, Opts) ->
SourceExtRe = "^[^._].*\\" ++ ".proto" ++ [$$],

Recursive = proplists:get_value(recursive, Opts, true),
SearchDirectory = filename:join([AppDir, SourceDir]),
rebar_api:debug("searching .proto files from ~p [recursive=~p]",
[SearchDirectory, Recursive]),
%% Find all possible source files
rebar_utils:find_files(filename:join([AppDir, SourceDir]),
rebar_utils:find_files(SearchDirectory,
SourceExtRe, Recursive).

compile([], _TargetErlDir, _GpbOpts, _Protos) -> ok;
Expand Down

0 comments on commit 518da95

Please sign in to comment.