-
Notifications
You must be signed in to change notification settings - Fork 535
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
setup-go@v5 installs newer go than requested #519
Comments
Disabling the cache did not appear to resolve this behavior: https://github.com/warewulf/warewulf/actions/runs/12080202374/job/33687202383?pr=1570 |
Hi @anderbubble 👋, |
Thanks for looking into it, @mahalakshmi-rekadi. Let me know if we're just doing something wrong. |
This looks related to #457, you should be able to use the workaround mentioned there, setting the env var env:
GOTOOLCHAIN: local |
Thanks for pointing us in the right direction! This identified for me that we had a mismatched toolchain directive in our go.mod which was causing it to be installed. I think the better fix for us right now is to just remove the toolchain directive from our go.mod, which appears to have resolved our issue (as seen in warewulf/warewulf#1577). Thanks again! |
Description:
Since upgrading from setup-go@v3 to setup-go@v5, our matrix strategy workflows are failing due to a go version mismatch. Versions of the tests that are attempting to use previous versions of go are running with later-version libraries, causing failures.
Example: https://github.com/warewulf/warewulf/actions/runs/12079627670/job/33685781604?pr=1556
Logs indicate that after setup-go installs the requested version of go, it then installs 1.23.3. This causes tests to run against
golang.org/[email protected]
, which is incompatible with requested golang versions 1.21 and 1.22.Action version:
v5
Platform:
Runner type:
Tools version:
1.21 and 1.22 (erroneously installs 1.23).
Repro steps:
See also: https://github.com/warewulf/warewulf/blob/main/.github/actions/prepare/action.yml
Expected behavior:
Should install the requested golang version, and only that version.
Actual behavior:
Installs the requested golang version and then a newer golang version.
The text was updated successfully, but these errors were encountered: