Skip to content

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

@shanshin shanshin requested a review from sandwwraith June 27, 2024 14:17
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
Contributor

@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
@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

4 participants