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

Fixed reusing of configuration cache #648

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Fixed reusing of configuration cache #648

merged 1 commit into from
Jun 27, 2024

Conversation

shanshin
Copy link
Collaborator

Due to the fact that a file was used as task input, it was placed in the configuration cache as entry, and changing this file causes the cache invalidation.

Problem in line localArtifact.set(variant.artifactGenTask.flatMap { task -> task.artifactFile }). flatMap function behaves strangely enough with the configuration cache, see also gradle/gradle#25645

Fixes #646

Due to the fact that a file was used as task input, it was placed in the configuration cache as entry, and changing this file causes the cache invalidation.

Problem in line `localArtifact.set(variant.artifactGenTask.flatMap { task -> task.artifactFile })`.
flatMap function behaves strangely enough with the configuration cache, see also gradle/gradle#25645

Fixes #646
Copy link

@fzhinkin fzhinkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

@shanshin shanshin merged commit 67c7836 into main Jun 27, 2024
1 check passed
@shanshin shanshin deleted the conf-cache branch June 27, 2024 16:01
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.

Configuration Cache can not be used after one run
3 participants