Skip to content

Use gvisor-tap-vsock version from go.mod file #25688

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

evidolob
Copy link
Contributor

Discussion there containers/gvisor-tap-vsock#475

Does this PR introduce a user-facing change?

None

Copy link
Contributor

openshift-ci bot commented Mar 26, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: evidolob
Once this PR has been reviewed and has the lgtm label, please assign tomsweeneyredhat for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@evidolob
Copy link
Contributor Author

cc @Luap99

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

Thank you. Overall this looks good to me, just some minor nits.

@baude @l0rd PTAL

Makefile Outdated
@@ -219,7 +219,7 @@ endif

# gvisor-tap-vsock version for gvproxy.exe and win-sshproxy.exe downloads
# the upstream project ships pre-built binaries since version 0.7.1
GV_VERSION=v0.8.4
GV_VERSION=$(shell grep github.com/containers/gvisor-tap-vsock go.mod | cut -d" " -f2)
Copy link
Member

Choose a reason for hiding this comment

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

I think it would make sense to rename this to GVPROXY_VERSION for some better consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Makefile Outdated
@@ -865,6 +865,7 @@ podman-remote-release-%.zip: test/version/version ## Build podman-remote for %=$
# Downloads pre-built gvproxy and win-sshproxy helpers. See comment on GV_VERSION declaration
.PHONY: win-gvproxy
win-gvproxy: test/version/version
echo $(GV_VERSION)
Copy link
Member

Choose a reason for hiding this comment

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

do we need this? I don't mind but then it should likely say GVPROXY_VERSION $(GV_VERSION) so that the output is clear on which version it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, that was a debug echo

@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Mar 26, 2025
@evidolob evidolob force-pushed the use-gvisor-from-gomod branch from 1b18013 to 1e55a06 Compare March 26, 2025 13:04
Copy link
Member

@l0rd l0rd left a comment

Choose a reason for hiding this comment

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

👋 @evidolob, nice to see you here. Thank you for the PR. LGTM with a non-blocking suggestion.

winmake.ps1 Outdated
@@ -72,7 +72,8 @@ function Win-SSHProxy {

New-Item -ItemType Directory -Force -Path "./bin/windows"
if (-Not $Version) {
$Version = "v0.8.4"
$match = Select-String -Path ".\go.mod" -Pattern "github.com/containers/gvisor-tap-vsock\s+(v[\d\.]+)"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$match = Select-String -Path ".\go.mod" -Pattern "github.com/containers/gvisor-tap-vsock\s+(v[\d\.]+)"
$match = Select-String -Path "$PSScriptRoot\go.mod" -Pattern "github.com/containers/gvisor-tap-vsock\s+(v[\d\.]+)"

In a lot of places we (incorrectly) assume that winmake.ps1 is executed from the root directory, but for new code we should avoid that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have add you suggestion

@evidolob evidolob force-pushed the use-gvisor-from-gomod branch from 1e55a06 to fafba60 Compare March 26, 2025 13:41
@baude
Copy link
Member

baude commented Mar 26, 2025

yeah, LGTM ... @cfergeau this look ok to you and no planned changes with gvproxy that would break this ?

@@ -219,7 +219,7 @@ endif

# gvisor-tap-vsock version for gvproxy.exe and win-sshproxy.exe downloads
# the upstream project ships pre-built binaries since version 0.7.1
GV_VERSION=v0.8.4
GVPROXY_VERSION=$(shell grep github.com/containers/gvisor-tap-vsock go.mod | cut -d" " -f2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps something like this instead (untested):

GVPROXY_VERSION=$(shell $(GO) list -m -f '{{.Version}}' github.com/containers/gvisor-tap-vsock)

@cfergeau
Copy link
Contributor

cfergeau commented Apr 1, 2025

yeah, LGTM ... @cfergeau this look ok to you and no planned changes with gvproxy that would break this ?

Looks fine to me, and I don’t expect changes in gvproxy which would break this.

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Luap99
Copy link
Member

Luap99 commented Apr 17, 2025

@evidolob Still working on this? It would be great to have this ready by next Tuesday so we have the right versions in the 5.5-rc1 installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants