Browse Source

Merge pull request #579 from mbruzek/mbruzek-makefile-fix

Replacing the user id with group id.
Tom Denham 8 years ago
parent
commit
4b752d1409
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -99,7 +99,7 @@ dist/flanneld-$(ARCH):
 	# Build for other platforms with ARCH=$$ARCH make build
 	# valid values for $$ARCH are [amd64 arm arm64 ppc64le]
 	docker run -e CC=$(CC) -e GOARM=$(GOARM) -e GOARCH=$(ARCH) -it \
-		-u $(shell id -u):$(shell id -u) \
+		-u $(shell id -u):$(shell id -g) \
 	    -v ${PWD}:/go/src/github.com/coreos/flannel:ro \
         -v ${PWD}/dist:/go/src/github.com/coreos/flannel/dist \
 	    gcr.io/google_containers/kube-cross:$(KUBE_CROSS_TAG) /bin/bash -c '\
@@ -115,7 +115,7 @@ dist/libpthread.so.0-$(ARCH):
 ## Build an architecture specific iptables binary
 dist/iptables-$(ARCH):
 	docker run -e CC=$(CC) -e GOARM=$(GOARM) -e GOARCH=$(ARCH) -it \
-			-u $(shell id -u):$(shell id -u) \
+			-u $(shell id -u):$(shell id -g) \
             -v ${PWD}:/go/src/github.com/coreos/flannel:ro \
             -v ${PWD}/dist:/go/src/github.com/coreos/flannel/dist \
             gcr.io/google_containers/kube-cross:$(KUBE_CROSS_TAG) /bin/bash -c '\