Skip to content

Commit b1b4e5a

Browse files
committed
Revert "plugins: update golang to 1.16.3 to build buildx on darwin/arm64"
This reverts commit 60e28c9. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 093961d commit b1b4e5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

static/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ ENGINE_DIR=$(realpath $(CURDIR)/../src/github.com/docker/docker)
55
GEN_STATIC_VER=$(shell ./gen-static-ver $(CLI_DIR) $(VERSION))
66
HASH_CMD=docker run -v $(CURDIR):/sum -w /sum debian:jessie bash hash_files
77
DIR_TO_HASH:=build/linux
8-
DOCKER_CLI_PLUGIN_GOLANG_IMG=golang:1.16.3
8+
GO_VERSION=$(shell grep "ARG GO_VERSION" $(CLI_DIR)/dockerfiles/Dockerfile.dev | awk -F'=' '{print $$2}')
9+
DOCKER_CLI_GOLANG_IMG=golang:$(GO_VERSION)
910

1011
.PHONY: help
1112
help: ## show make targets
@@ -103,7 +104,7 @@ cross-mac-plugins: cross-mac-plugins-amd64 cross-mac-plugins-arm64
103104
cross-mac-plugins-%: CLI_BUILD_DIR := mac
104105
cross-mac-plugins-%:
105106
mkdir -p build/$(CLI_BUILD_DIR)/$*/docker
106-
GOOS=darwin GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_PLUGIN_GOLANG_IMG) /build
107+
GOOS=darwin GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_GOLANG_IMG) /build
107108
$(CHOWN) -R $(shell id -u):$(shell id -g) build/$(CLI_BUILD_DIR)/$*
108109

109110
.PHONY: cross-win-plugins
@@ -113,6 +114,6 @@ cross-win-plugins: cross-win-plugins-amd64
113114
cross-win-plugins-%: CLI_BUILD_DIR := win
114115
cross-win-plugins-%:
115116
mkdir -p build/$(CLI_BUILD_DIR)/$*/docker/cli-plugins
116-
GOOS=windows GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_PLUGIN_GOLANG_IMG) /build
117+
GOOS=windows GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_GOLANG_IMG) /build
117118
$(CHOWN) -R $(shell id -u):$(shell id -g) build/$(CLI_BUILD_DIR)/$*
118119
find build/$(CLI_BUILD_DIR)/$*/docker -type f -not -name "*.exe" -exec mv {} {}.exe \;

0 commit comments

Comments
 (0)