-
Notifications
You must be signed in to change notification settings - Fork 572
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
Project dependencies don't invalidate properly in the configuration cache #2815
Comments
@martinbonnin tried to repro and wasn't able to.
Would it be because another file than |
What I did is there: https://github.com/martinbonnin/test-wire
And the output is technically correct but it theorically should be able to reuse the CC I think? So there might be different problems there? |
Did a bit more digging, my hunch is that the problem lies somewhere around here: return project.provider {
configuration.dependencies.flatMap { dep ->
val sortedFiles = configuration.files(dep).sortedWith(compareBy { it.name })
sortedFiles.flatMap { file -> file.toLocations(project, dep) }
}
} This
|
This might help? https://github.com/square/wire/pull/2838/files |
This too: #2848 |
I’m using the Wire Gradle plugin and the Gradle configuration cache.
My Wire build includes this syntax:
Unfortunately when I make changes to
upstream-protos
my Wire project doesn’t rebuild enough, and produces an incorrect compilation result.In the interim I’m using this to workaround:
I can also use
--no-configuration-cache
as a workaround, but that’s more severe.The text was updated successfully, but these errors were encountered: