-
Notifications
You must be signed in to change notification settings - Fork 55
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
go.mod: update to go v1.22 #1180
Conversation
achilleas-k
commented
Jan 29, 2025
- Update the go.mod to use v1.22
- Update all test workflows to install v1.22
- Edit and run tools/prepare-source.sh
- Update the go.mod to use v1.22 - Update all test workflows to install v1.22 - Edit and run tools/prepare-source.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although there are some places where we just dnf install go
which might cause inconsistent test results?
(e.g. test/scripts/install-dependencies
or .github/workflows/test-osbuild-composer-integration.yml
)
should we pin those too, in a followup PR?
No need. Those run on distros with new enough Go versions so there shouldn't be an issue. Go version pinning isn't really important. It shows up in the GitHub actions because we use the action that supports pinning. Then there's the |
My thinking was rather that tests might behave differently e.g. a test could succeed in a newer go version but fails in the pinned/released older version |
How do you mean? Go generally uses this version to enable/disable language features so they cannot be used; even when compiled with a newer Go. |
Probably saw to many odd behaviors with different compiler version just creating different results. |
But we do test with the supported version. It's just that we do manifest generation in Gitlab with whatever's in the Fedora repos. If compiling with a newer Go version generates a different manifest, that'd be a pretty serious compiler issue, I think. |