-
Notifications
You must be signed in to change notification settings - Fork 549
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
Error with no go.sum file #427
Comments
you can see our failed github action here: https://github.com/spiffe/helm-charts/actions/runs/6219786000 |
Thank you @faisal-memon , we are starting to investigate the problem. |
Hello @faisal-memon , This is expected behaviour, and it is the same for both v4.0 and v4.1 I went through the history all actions runs in the repo and was not able to discover any runs that had used [email protected], the first occurrence of setup-go step is in run#22 and it already was using v4.1 and produced the same warning. In order to get rid of the annoying message please add
did it help? |
Thanks @dsame Confirmed error goes away with the suggested change. |
* Partial fix for #3887 Fix as reported here: actions/setup-go#427 (comment) * Force rebuild of a grammar with the Go target.
got the same problem and it fixed with this solution |
For anyone else ending up here (and for those that used the cache-dependency-path: "**/go.sum" FWIW, a better solution would be for this action to infer the path of go.sum from the go.mod file, and not just to assume it is in the project root, particularly when go.mod is NOT there (i.e. if I give it |
After we upgraded actions/setup-go to v5, the following warning message was reported every time we ran the CI. Restore cache failed: Dependencies file is not found ... Disable cache to suppress warning messages as described in the solution below. actions/setup-go#427 Signed-off-by: Jiang Xin <[email protected]>
* GHA: update dependencies Bump ncipollo/release-action to v1.14.0. Use commit SHA as revision instead of tag, because the former is less mutable. * Make setup-go warning go away Per actions/setup-go#427.
I would also suggest to ensure that checkout is performed BEFORE invoking setup-go. Otherwise, the setup-go step won't find the go.sum if the checkout is not performed. |
Description:
After upgrading from 4.0 to 4.1 we see the below failure:
We don't have a go.sum file.
Action version:
[email protected]
Platform:
Runner type:
Tools version:
Go 1.21
Repro steps:
Run setup-go without a go.sum
Expected behavior:
For it to work ok as go.sum is not needed if there are no dependancies
Actual behavior:
Failure
The text was updated successfully, but these errors were encountered: