Skip to content

Conversation

evidolob
Copy link
Collaborator

We need to upgrade to 'go 1.23' to be able to upgrade libraries with CVE's, which are requires newer version of go.
Also we need disable building packages for fedora 40, as it doesn't have 'go 1.23' and will end of life soon.

@evidolob evidolob requested a review from cfergeau March 17, 2025 09:52
go.mod Outdated
@@ -1,6 +1,6 @@
module github.com/containers/gvisor-tap-vsock

go 1.22.0
go 1.23.7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we stick to 1.23.0? I already don’t like that our dependencies force major go updates on us, I’d prefer to stick to the minimum version possible, and let people building gvisor-tap-vsock use the go version they prefer (ideally the latest released)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -57,7 +57,7 @@ func init() {
privateKeyFile = filepath.Join(tmpDir, "id_test")
publicKeyFile = privateKeyFile + ".pub"
ignFile = filepath.Join(tmpDir, "test.ign")
cmdDir = filepath.Join("../cmd")
cmdDir = "../cmd"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the lint error to the commit log so that it’s easier to understand what the problem was?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, done

We need to upgrade to 'go 1.23.0' to be able to upgrade libraries with CVE's, which are requires newer version of go.
Also we need disable building packages for fedora 40, as it doesn't have 'go 1.23.0' and will end of life soon.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
Actual error "badCall: suspicious Join on 1 argument (gocritic)
 cmdDir = filepath.Join("../cmd")
"

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
Copy link
Collaborator

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Copy link
Contributor

openshift-ci bot commented Mar 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau, evidolob

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 4f9db96 into containers:main Mar 17, 2025
19 of 20 checks passed
@evidolob evidolob deleted the upgrade-go branch March 17, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants