File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ ENGINE_DIR=$(realpath $(CURDIR)/../src/github.com/docker/docker)
5
5
GEN_STATIC_VER =$(shell ./gen-static-ver $(CLI_DIR ) $(VERSION ) )
6
6
HASH_CMD =docker run -v $(CURDIR ) :/sum -w /sum debian:jessie bash hash_files
7
7
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 )
9
10
10
11
.PHONY : help
11
12
help : # # show make targets
@@ -103,7 +104,7 @@ cross-mac-plugins: cross-mac-plugins-amd64 cross-mac-plugins-arm64
103
104
cross-mac-plugins-% : CLI_BUILD_DIR := mac
104
105
cross-mac-plugins-% :
105
106
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
107
108
$(CHOWN ) -R $(shell id -u) :$(shell id -g) build/$(CLI_BUILD_DIR ) /$*
108
109
109
110
.PHONY : cross-win-plugins
@@ -113,6 +114,6 @@ cross-win-plugins: cross-win-plugins-amd64
113
114
cross-win-plugins-% : CLI_BUILD_DIR := win
114
115
cross-win-plugins-% :
115
116
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
117
118
$(CHOWN ) -R $(shell id -u) :$(shell id -g) build/$(CLI_BUILD_DIR ) /$*
118
119
find build/$(CLI_BUILD_DIR ) /$* /docker -type f -not -name " *.exe" -exec mv {} {}.exe \;
You can’t perform that action at this time.
0 commit comments