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

Modify FileSignature so that it can be relocated based on content #573

Closed
wants to merge 3 commits into from

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented May 10, 2020

This attempts to resolve #566 by using ThreadLocal to serialize FileSignature differently when it is being used by Gradle than by other consumers. This allows SpotlessCache to use the fastpath, and only Gradle up-to-date checking uses the slow path.

Ideally, we could use the fast path for Gradle up-to-date checking too, and we'd somehow have a way to alter/canonicalize the cache key only for the remote buildcache. @bigdaz am I correct that no such API exists?

nedtwigg added 2 commits May 10, 2020 15:32
…f desired, or rely on local timestamps if you don't care about relocating.
@nedtwigg
Copy link
Member Author

This idea didn't work, and #571 is better.

@nedtwigg nedtwigg closed this Jun 23, 2020
@nedtwigg nedtwigg deleted the feat/relocatable-filesignature branch June 28, 2020 20:53
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.

Make FileSignature machine-independent.
1 participant