mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Merge pull request #25688 from evidolob/use-gvisor-from-gomod
Use gvisor-tap-vsock version from go.mod file
This commit is contained in:
8
Makefile
8
Makefile
@ -218,7 +218,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)
|
||||
|
||||
###
|
||||
### Primary entry-point targets
|
||||
@ -861,12 +861,12 @@ podman-remote-release-%.zip: test/version/version ## Build podman-remote for %=$
|
||||
if [[ "$(GOARCH)" != "$(NATIVE_GOARCH)" ]]; then $(MAKE) clean-binaries; fi
|
||||
-rm -rf "$(tmpsubdir)"
|
||||
|
||||
# Downloads pre-built gvproxy and win-sshproxy helpers. See comment on GV_VERSION declaration
|
||||
# Downloads pre-built gvproxy and win-sshproxy helpers. See comment on GVPROXY_VERSION declaration
|
||||
.PHONY: win-gvproxy
|
||||
win-gvproxy: test/version/version
|
||||
mkdir -p bin/windows/
|
||||
curl -sSL -o bin/windows/gvproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GV_VERSION)/gvproxy-windowsgui.exe
|
||||
curl -sSL -o bin/windows/win-sshproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GV_VERSION)/win-sshproxy.exe
|
||||
curl -sSL -o bin/windows/gvproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GVPROXY_VERSION)/gvproxy-windowsgui.exe
|
||||
curl -sSL -o bin/windows/win-sshproxy.exe --retry 5 https://github.com/containers/gvisor-tap-vsock/releases/download/$(GVPROXY_VERSION)/win-sshproxy.exe
|
||||
|
||||
.PHONY: rpm
|
||||
rpm: ## Build rpm packages
|
||||
|
@ -6,7 +6,7 @@ ifeq ($(ARCH), aarch64)
|
||||
else
|
||||
GOARCH:=$(ARCH)
|
||||
endif
|
||||
GVPROXY_VERSION ?= 0.8.4
|
||||
GVPROXY_VERSION ?= $(shell grep github.com/containers/gvisor-tap-vsock ../../go.mod | cut -d" " -f2)
|
||||
VFKIT_VERSION ?= 0.6.1
|
||||
KRUNKIT_VERSION ?= 0.2.0
|
||||
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION)/gvproxy-darwin
|
||||
|
@ -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 "$PSScriptRoot\go.mod" -Pattern "github.com/containers/gvisor-tap-vsock\s+(v[\d\.]+)"
|
||||
$Version = $match.Matches.Groups[1].Value
|
||||
}
|
||||
curl.exe -sSL -o "./bin/windows/gvproxy.exe" --retry 5 "https://github.com/containers/gvisor-tap-vsock/releases/download/$Version/gvproxy-windowsgui.exe"
|
||||
curl.exe -sSL -o "./bin/windows/win-sshproxy.exe" --retry 5 "https://github.com/containers/gvisor-tap-vsock/releases/download/$Version/win-sshproxy.exe"
|
||||
|
Reference in New Issue
Block a user