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

submit: Invalidate template cache if origin/main is updated #370

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

abhinav
Copy link
Owner

@abhinav abhinav commented Aug 30, 2024

We calculate the template cache key based on the hashes of the files
inside the locations in the repository where tempates are stored,
but we check their state at $trunk instead of $remote/$trunk.

This results in the cache not being invalidated
if the remote has been updated and fetched, but the local ref is behind.

Ref #369

We calculate the template cache key based on the hashes of the files
inside the locations in the repository where tempates are stored,
but we check their state at `$trunk` instead of `$remote/$trunk`.

This results in the cache not being invalidated
if the remote has been updated and fetched, but the local ref is behind.

Ref #369
@abhinav
Copy link
Owner Author

abhinav commented Aug 30, 2024

This change is part of the following stack:

Change managed by git-spice.

@abhinav abhinav merged commit 8bdfcaa into main Aug 30, 2024
9 checks passed
@abhinav abhinav deleted the submit-template-remote branch August 30, 2024 03:29
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.

1 participant