Skip to content

Commit 0a65e7c

Browse files
Merge pull request #25949 from benoitf/mod-script
chore: use another script to get the version of gvproxy + fix download link
2 parents a3e1320 + 75aec67 commit 0a65e7c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ endif
218218

219219
# gvisor-tap-vsock version for gvproxy.exe and win-sshproxy.exe downloads
220220
# the upstream project ships pre-built binaries since version 0.7.1
221-
GVPROXY_VERSION=$(shell grep github.com/containers/gvisor-tap-vsock go.mod | cut -d" " -f2)
221+
GVPROXY_VERSION=$(shell $(GO) list -m -f '{{.Version}}' github.com/containers/gvisor-tap-vsock)
222222

223223
###
224224
### Primary entry-point targets

contrib/pkginstaller/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
SHELL := bash
2+
GO ?= go
23

34
ARCH ?= aarch64
45
ifeq ($(ARCH), aarch64)
56
GOARCH:=arm64
67
else
78
GOARCH:=$(ARCH)
89
endif
9-
GVPROXY_VERSION ?= $(shell grep github.com/containers/gvisor-tap-vsock ../../go.mod | cut -d" " -f2)
10+
GVPROXY_VERSION=$(shell $(GO) list -m -f '{{.Version}}' github.com/containers/gvisor-tap-vsock)
1011
VFKIT_VERSION ?= 0.6.1
1112
KRUNKIT_VERSION ?= 0.2.0
12-
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION)/gvproxy-darwin
13+
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/$(GVPROXY_VERSION)/gvproxy-darwin
1314
VFKIT_RELEASE_URL ?= https://github.com/crc-org/vfkit/releases/download/v$(VFKIT_VERSION)/vfkit-unsigned
1415
KRUNKIT_RELEASE_URL ?= https://github.com/containers/krunkit/releases/download/v$(KRUNKIT_VERSION)/krunkit-podman-unsigned-$(KRUNKIT_VERSION).tgz
1516
PACKAGE_DIR ?= out/packaging

0 commit comments

Comments
 (0)