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

Delete the ksp caches when the task is restored from cache #2055

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

ansman
Copy link
Contributor

@ansman ansman commented Aug 24, 2024

Without this change, the task's caches will be in an incorrect state and the next incremental run can lead to compile errors.

Now the caches have been marked as local state and Gradle will remove them when the task is restored from the build cache.

This fixes #2042

@ansman ansman force-pushed the fix/2042/incremental-building branch from 7d24fdb to 69a98ec Compare August 24, 2024 19:19
ansman added a commit to ansman/ksp that referenced this pull request Aug 24, 2024
Without this change, the task's caches will be in an incorrect state and
the next incremental run can lead to compile errors.

Now the caches have been marked as local state and Gradle will remove
them when the task is restored from the build cache.

This fixes google#2055
@ansman ansman force-pushed the fix/2042/incremental-building branch from 69a98ec to 2d6c302 Compare August 24, 2024 19:20
Without this change, the task's caches will be in an incorrect state and
the next incremental run can lead to compile errors.

Now the caches have been marked as local state and Gradle will remove
them when the task is restored from the build cache.

This fixes google#2042
@ansman ansman force-pushed the fix/2042/incremental-building branch 2 times, most recently from abd7527 to 035b05f Compare August 29, 2024 15:12
@ting-yuan ting-yuan merged commit 1290ef8 into google:main Sep 5, 2024
3 checks passed
@ting-yuan
Copy link
Collaborator

Thank you so much!

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

Successfully merging this pull request may close these issues.

kspCaches don't work together with Gradle build cache
3 participants