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

KtlintCheckTask not cacheable due to overlapping outputs #379

Closed
3flex opened this issue Aug 14, 2020 · 3 comments · Fixed by #389
Closed

KtlintCheckTask not cacheable due to overlapping outputs #379

3flex opened this issue Aug 14, 2020 · 3 comments · Fixed by #389
Assignees
Labels

Comments

@3flex
Copy link

3flex commented Aug 14, 2020

From my build scan:

Overlapping outputs: Gradle does not know how file 'build\reports\ktlint\ktlintAndroidTestSourceSetCheck.txt' was created (output property 'reporterOutputDir'). Task output caching requires exclusive access to output paths to guarantee correctness.

I have several KtlintCheckTask tasks in my build, and all are noncacheable for this reason. The tasks run every time even when Gradle runs with --build-cache.

ktlint-gradle version 9.3.0

@3flex
Copy link
Author

3flex commented Aug 15, 2020

Just to update, I've downgraded to 9.2.1, and task output caching works on that version. I suspect the issue was introduced in #346

@Tapchicoma Tapchicoma added the bug label Sep 2, 2020
@Tapchicoma Tapchicoma self-assigned this Sep 2, 2020
@Tapchicoma
Copy link
Collaborator

Yes, can confirm. Will try to fix it.

@Tapchicoma
Copy link
Collaborator

Problem that output dir could be created by another source set check task that run before. Will fix it for the next release.

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

Successfully merging a pull request may close this issue.

2 participants