Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getArgsFile tasks' privateIncludeDirs property can end up looking at the project build directory and files contained within #119

Open
tudortimi opened this issue Jul 18, 2023 · 1 comment
Labels
a:bug Something isn't working

Comments

@tudortimi
Copy link
Owner

If . is added as srcDir of a source set, then the Gradle build directory (./build by default) will end up added to privateIncludeDirs, together with all files under it. This will can lead to warnings like when source sets have dependencies on each other:

  • Gradle detected a problem with the following location: ''/build/xrun_args.f'. Reason: Task ':svunit:svunit-source:genPreMainXrunArgsFile' uses this output of task ':svunit:svunit-source:genXrunArgsFile' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
@tudortimi
Copy link
Owner Author

Just filtering out the files might be enough.

@tudortimi tudortimi added the a:bug Something isn't working label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant