-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Setting org.gradle.unsafe.isolated-projects not causing recalculation of configuration cache #26049
Comments
Thank you for your interest in Gradle! This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary. |
@mathjeff, thank you for this great reproducer experience! This is probably the best one I've seen ⭐ Maybe a small thing to improve: it seems, maybe macOS-specific, but the
If you move them in front like |
…Configuration Cache key <!--- The issue this PR addresses --> Fixes #26049 ### Reviewing cheatsheet Before merging the PR, comments starting with - ❌ ❓**must** be fixed - 🤔 💅 **should** be fixed - 💭 **may** be fixed - 🎉 celebrate happy things Co-authored-by: Alex Semin <asemin@gradle.com>
Thanks! |
Current Behavior
I'm finding that when I run
./gradlew --configuration-cache ${someArguments} && ./gradlew --configuration-cache -Dorg.gradle.unsafe.isolated-projects=true ${someArguments}
, then if the first build succeeds and populates the configuration cache, it prevents the second build from verifying project isolation compatibility: instead it reuses the configuration cache entry created by the first build.Expected Behavior
I think it would be nice if
org.gradle.unsafe.isolated-projects
could be declared as an input to the configuration cache so that a previous successful build without project isolation enabled won't cause project isolation validation to be subsequently skippedContext (optional)
I'm working towards enabling project isolation (in AndroidX) and we have a large collection of violations.
For the moment, my process is:
Sometimes step 3 will succeed because step 2 succeeded, making me incorrectly think that I might have fixed the project isolation error when actually the reason is that the configuration phase was skipped.
Steps to Reproduce
See https://github.com/mathjeff/gradle-samples-2/tree/main/configuration-cache-ignoring-project-isolation
Gradle version
8.3-rc-1
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: