diff --git a/common.mk b/common.mk index 0d5554c333..ce1ddd2a67 100644 --- a/common.mk +++ b/common.mk @@ -16,7 +16,7 @@ BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 n CHOWN:=docker run --rm -v $(CURDIR):/v -w /v alpine chown DEFAULT_PRODUCT_LICENSE:=Community Engine DOCKER_GITCOMMIT:=abcdefg -GO_VERSION:=1.13.15 +GO_VERSION:=1.16.6 PLATFORM=Docker Engine - Community SHELL:=/bin/bash VERSION?=0.0.1-dev diff --git a/static/Makefile b/static/Makefile index 97e2833132..85ec9472bf 100644 --- a/static/Makefile +++ b/static/Makefile @@ -5,7 +5,7 @@ ENGINE_DIR=$(realpath $(CURDIR)/../src/github.com/docker/docker) GEN_STATIC_VER=$(shell ./gen-static-ver $(CLI_DIR) $(VERSION)) HASH_CMD=docker run -v $(CURDIR):/sum -w /sum debian:jessie bash hash_files DIR_TO_HASH:=build/linux -DOCKER_CLI_PLUGIN_GOLANG_IMG=golang:1.16.3 +DOCKER_CLI_GOLANG_IMG=golang:$(GO_VERSION) .PHONY: help help: ## show make targets @@ -102,7 +102,7 @@ cross-mac-plugins: cross-mac-plugins-amd64 cross-mac-plugins-arm64 cross-mac-plugins-%: CLI_BUILD_DIR := mac cross-mac-plugins-%: mkdir -p build/$(CLI_BUILD_DIR)/$*/docker - GOOS=darwin GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_PLUGIN_GOLANG_IMG) /build + GOOS=darwin GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_GOLANG_IMG) /build $(CHOWN) -R $(shell id -u):$(shell id -g) build/$(CLI_BUILD_DIR)/$* .PHONY: cross-win-plugins @@ -112,6 +112,6 @@ cross-win-plugins: cross-win-plugins-amd64 cross-win-plugins-%: CLI_BUILD_DIR := win cross-win-plugins-%: mkdir -p build/$(CLI_BUILD_DIR)/$*/docker/cli-plugins - GOOS=windows GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_PLUGIN_GOLANG_IMG) /build + GOOS=windows GOARCH=$* docker run $(BUILD_PLUGIN_RUN_VARS) $(DOCKER_CLI_GOLANG_IMG) /build $(CHOWN) -R $(shell id -u):$(shell id -g) build/$(CLI_BUILD_DIR)/$* find build/$(CLI_BUILD_DIR)/$*/docker -type f -not -name "*.exe" -exec mv {} {}.exe \;