Skip to content

Fix setup-go restore key #1394

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

Merged
merged 3 commits into from
Jul 11, 2025
Merged

Fix setup-go restore key #1394

merged 3 commits into from
Jul 11, 2025

Conversation

jakebailey
Copy link
Member

The restore key I used was wrong; it was exactly matching an older cache entry rather than falling back on the previous run. Change the way we handle restore keys to avoid this.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fix the cache restore key logic in the setup-go action to avoid exact matches with older cache entries.

  • Update the primary and fallback cache keys to include a unique -run- segment when restoring from a previous run
  • Add a trailing hyphen to the top-level prefix in the fallback restore-keys for consistency

@jakebailey jakebailey enabled auto-merge July 11, 2025 20:50
@jakebailey jakebailey added this pull request to the merge queue Jul 11, 2025
Merged via the queue into main with commit 83d4f30 Jul 11, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/fix-cache branch July 11, 2025 21:46
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.

2 participants