fix: gha setup go cache issue [#1319] #1320
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While looking at the GitHub Action runner executing a job, I have noticed an error during the "Set up Go 1.x" stage
Warning: Restore cache failed: Dependencies file is not found in /home/runner/work/saml2aws/saml2aws. Supported file pattern: go.sum
A quick look at the documentation and it had the
actions/checkout
before theactions/setup-go
, while we had it afterwards, which probably explains why it cannot findgo.sum
.Also (the bit that was outside the scope of the initial issue but I wanted to save multiple PRs):
actions/checkout
to have "fetch-depth" of 0 for the changelog to work correctly for the gorelease release, as mentioned in the "IMPORTANT" section beneath the Workflow code block: https://github.com/goreleaser/goreleaser-action?tab=readme-ov-file#workflowI am more than happy to move the "also" bit to a new PR if that is more ideal?
Closes #1319