File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ endif
218
218
219
219
# gvisor-tap-vsock version for gvproxy.exe and win-sshproxy.exe downloads
220
220
# the upstream project ships pre-built binaries since version 0.7.1
221
- GV_VERSION =v0.8.4
221
+ GVPROXY_VERSION = $( shell grep github.com/containers/gvisor-tap-vsock go.mod | cut -d" " -f2)
222
222
223
223
# ##
224
224
# ## Primary entry-point targets
@@ -861,12 +861,12 @@ podman-remote-release-%.zip: test/version/version ## Build podman-remote for %=$
861
861
if [[ " $( GOARCH) " != " $( NATIVE_GOARCH) " ]]; then $( MAKE) clean-binaries; fi
862
862
-rm -rf " $( tmpsubdir) "
863
863
864
- # Downloads pre-built gvproxy and win-sshproxy helpers. See comment on GV_VERSION declaration
864
+ # Downloads pre-built gvproxy and win-sshproxy helpers. See comment on GVPROXY_VERSION declaration
865
865
.PHONY : win-gvproxy
866
866
win-gvproxy : test/version/version
867
867
mkdir -p bin/windows/
868
- curl -sSL -o bin/windows/gvproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GV_VERSION ) /gvproxy-windowsgui.exe
869
- curl -sSL -o bin/windows/win-sshproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GV_VERSION ) /win-sshproxy.exe
868
+ curl -sSL -o bin/windows/gvproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GVPROXY_VERSION ) /gvproxy-windowsgui.exe
869
+ curl -sSL -o bin/windows/win-sshproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GVPROXY_VERSION ) /win-sshproxy.exe
870
870
871
871
.PHONY : rpm
872
872
rpm : # # Build rpm packages
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ifeq ($(ARCH), aarch64)
6
6
else
7
7
GOARCH:=$(ARCH)
8
8
endif
9
- GVPROXY_VERSION ?= 0.8.4
9
+ GVPROXY_VERSION ?= $( shell grep github.com/containers/gvisor-tap-vsock ../../go.mod | cut -d" " -f2)
10
10
VFKIT_VERSION ?= 0.6.1
11
11
KRUNKIT_VERSION ?= 0.2.0
12
12
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION ) /gvproxy-darwin
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ function Win-SSHProxy {
72
72
73
73
New-Item - ItemType Directory - Force - Path " ./bin/windows"
74
74
if (-Not $Version ) {
75
- $Version = " v0.8.4"
75
+ $match = Select-String - Path " $PSScriptRoot \go.mod" - Pattern " github.com/containers/gvisor-tap-vsock\s+(v[\d\.]+)"
76
+ $Version = $match.Matches.Groups [1 ].Value
76
77
}
77
78
curl.exe - sSL - o " ./bin/windows/gvproxy.exe" -- retry 5 " https://github.com/containers/gvisor-tap-vsock/releases/download/$Version /gvproxy-windowsgui.exe"
78
79
curl.exe - sSL - o " ./bin/windows/win-sshproxy.exe" -- retry 5 " https://github.com/containers/gvisor-tap-vsock/releases/download/$Version /win-sshproxy.exe"
You can’t perform that action at this time.
0 commit comments