Versent / saml2aws

CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP
https://github.com/Versent/saml2aws
MIT License
2.09k stars 564 forks source link

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

Closed tinaboyce closed 4 months ago

tinaboyce commented 4 months ago

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