-
Notifications
You must be signed in to change notification settings - Fork 531
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
Overriding go-version with latest regardless of settings #516
Comments
I've tried a few things including ignoring cache, the runner looks like this now:
I wonder if it is being overridden by go.mod? (can that be explicitly ignored?) EDIT: i'm sure i'm doing something stupid here, just can't figure out what. |
Hello @ross-spencer, Thank you for creating this issue and we will look into it :) |
Hello @ross-spencer, Explicitly ignoring the go version can lead to inconsistencies and unexpected behavior, as dependencies may rely on features available only in the specified Go version. It is best practice to update the go.mod file to match the installed version instead of ignoring it explicitly because: Refer the below doc, Please let us know if you have any further questions or support needed. |
Thanks for looking at this in-depth @mahalakshmi-rekadi I appreciate it! I will need to think about how to perform multi-version testing but this should stabilize things for now. I will take a look at my settings again this week, this helps a lot. |
Description:
I have the following configured:
But in GitHub the workflow is always downloading 1.23.3:
Action version:
V5.
Platform:
Runner type:
Tools version:
Expected 1.22 getting 1.23.3
Repro steps:
Currently running in this PR here: https://github.com/ocfl-archive/error/pull/1/files#diff-717013d02a8afac81852f25ba8ecd3cc0ca53a7f1fe25bedebfd66d6f518d21c
Expected behavior:
A description of what you expected to happen.
Configuration of Go version should work.
Actual behavior:
A description of what is actually happening.
It looks like Go 1.22 is successfully installed and then it is overridden by 1.23. It shows up quite profoundly in this workflow because staticcheck is not compiled for 1.23.
The text was updated successfully, but these errors were encountered: