From 46c551e977cc330b1b8e5a95ebe4abd4a38a3c89 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Fri, 25 May 2018 19:31:56 +0200 Subject: [PATCH] Fix Docker Machine build GOPATH if no default GOPATH in the env. (#2125) --- src/docker_machine/src/docker_machine/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/docker_machine/src/docker_machine/Makefile b/src/docker_machine/src/docker_machine/Makefile index f9592708cc..051a240073 100644 --- a/src/docker_machine/src/docker_machine/Makefile +++ b/src/docker_machine/src/docker_machine/Makefile @@ -3,9 +3,15 @@ SHELL := /bin/bash BUILD_ID := $(shell head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') REPO_ROOT ?= $(shell realpath ../../../../) GOCA_PATH ?= ${REPO_ROOT}/src/oca/go -GOPATH := $(GOPATH):${REPO_ROOT}/src/docker_machine +GOPATH_REPO ?= ${REPO_ROOT}/src/docker_machine USE_LOCAL_GOCA ?= yes +ifeq ($(GOPATH),) +GOPATH := $(GOPATH_REPO) +else +GOPATH := $(GOPATH):$(GOPATH_REPO) +endif + .PHONY: clean build build: bin/docker-machine-driver-opennebula