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

Don't cache the projectDir or binaryFile as part of GeneratedFileCache #883

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

RBusarow
Copy link
Collaborator

fixes #880

The GeneratedFileCache needs a reference to the current machine's project directory and the path of its binary file.
These values were being written to that binary file and restored on subsequent reads. That breaks things when the same cache is used on a different machine due to remote build caching.

Now, those two files are still part of GeneratedFileCache, but only the inner Tables class is actually cached.

@RBusarow RBusarow force-pushed the rick/file-cache-projectDir branch from 1f803df to a0095e5 Compare February 22, 2024 03:20
…eCache`

fixes #880

The `GeneratedFileCache` needs a reference to the current machine's project directory
and the path of its binary file.
These values were being written to that binary file and restored on subsequent reads.
That breaks things when the same cache is used on a different machine due to remote build caching.

Now, those two files are still part of `GeneratedFileCache`,
but only the inner `Tables` class is actually cached.
@RBusarow RBusarow force-pushed the rick/file-cache-projectDir branch from a0095e5 to d42a51e Compare February 22, 2024 03:34
@RBusarow RBusarow marked this pull request as ready for review February 22, 2024 04:13
@RBusarow RBusarow merged commit 1387622 into main Feb 23, 2024
17 checks passed
@RBusarow RBusarow deleted the rick/file-cache-projectDir branch February 23, 2024 13:28
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.

Stub gen FileNotFoundException with new file tracking enabled
2 participants