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

GitHub Actions "Set up Go 1.x" is giving Restore cache failed warning #1319

Closed
tinaboyce opened this issue Jul 21, 2024 · 0 comments · Fixed by #1320
Closed

GitHub Actions "Set up Go 1.x" is giving Restore cache failed warning #1319

tinaboyce opened this issue Jul 21, 2024 · 0 comments · Fixed by #1320

Comments

@tinaboyce
Copy link
Contributor

tinaboyce commented Jul 21, 2024

Possible cause, the step actions/checkout happens after the actions/setup-go instead of before. The GoReleaser Action documentation shows it should be before: https://github.com/goreleaser/goreleaser-action?tab=readme-ov-file#usage

Example: https://github.com/Versent/saml2aws/actions/runs/10027395403/job/27713011199#step:2:16

Run actions/setup-go@v5
Setup go version spec 1.21.x
Found in cache @ /opt/hostedtoolcache/go/1.21.12/x64
Added go to the path
Successfully set up Go version 1.21.x
/opt/hostedtoolcache/go/1.21.12/x64/bin/go env GOMODCACHE
/opt/hostedtoolcache/go/1.21.[12](https://github.com/Versent/saml2aws/actions/runs/10027395403/job/27713011199#step:2:13)/x64/bin/go env GOCACHE
/home/runner/go/pkg/mod
/home/runner/.cache/go-build
Warning: Restore cache failed: Dependencies file is not found in /home/runner/work/saml2aws/saml2aws. Supported file pattern: go.sum
go version go1.21.12 linux/amd64
tinaboyce added a commit to tinaboyce/saml2aws that referenced this issue Jul 21, 2024
mapkon added a commit that referenced this issue Jul 22, 2024
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 a pull request may close this issue.

1 participant