Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds the option {recursive,boolean()}, indicating whether or not rebar3 should search recursively for source files to compile. The options can be set on two levels:
top level - sets the default for the project:
{erlc_compiler,[{recursive,boolean()}]}.
per source directory:
{src_dirs,[{"src",[{recursive,boolean()}]}]}.
{extra_src_dirs,[{"test",[{recursive,boolean()}]}]}.
The variants are chosen after the discussion in issue #1345.
This feature is needed for testing of split-out applications from erlang/OTP, where data dirs (*_SUITE_data) in test contain .erl files that must not be compiled by rebar3. Reasons for this can be
a) the files should not be compiled at all, e.g. because the test suite operates on the .erl files.
b) the files must be compiled with specific options which shall not be applied to other source files (e.g. specific output directories)
For b) we need to let the test suite itself do the compilation. Earlier this was solved with a Makefile and some internal code in our test environment, but we are probably aiming at removing this.