Skip to content

Commit

Permalink
Merge pull request #170 from dsrosario/feature/add_more_debug
Browse files Browse the repository at this point in the history
Add more log regarding search options
  • Loading branch information
lrascao committed Jan 19, 2024
2 parents 9f93aeb + 518da95 commit ee30932
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 ee30932

Please sign in to comment.