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

Anvil making downstream gradle kotlin compilation task not cacheable #821

Open
valeraz opened this issue Dec 15, 2023 · 4 comments
Open

Comments

@valeraz
Copy link

valeraz commented Dec 15, 2023

While examining our gradle build scans, I noticed this error message on our compileInternalDebugKotlin task:

Overlapping outputs: Gradle does not know how file 'build/anvil/src-gen-internalDebug/anvil' was created (output property '$1'). Task output caching requires exclusive access to output paths to guarantee correctness (i.e. multiple tasks are not allowed to produce output in the same location).

Which makes the task not cacheable.

@DPUkyle
Copy link

DPUkyle commented Jan 16, 2024

Is this a duplicate of #693 ?

@ZacSweers
Copy link
Collaborator

I don't think it's a duplicate of that, this seems a different issue related to anvil's attempts at working around IC issues by setting up source set dependencies

@RBusarow
Copy link
Member

I think that error message is misleading. Before 2.5.0-beta01, Anvil didn't actually declare that directory as an output. So Gradle wouldn't be tracking it at all.

Was it being added via a convention plugin?

@ZacSweers
Copy link
Collaborator

I think this issue is probably out of date. We did have some convention stuff going on but I've lost track of what we did between the manual workarounds posted here and switching to the upstreamed stuff in 2.5.0 betas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants