Inherit GOPATH from environment 74/1174/1
authorYolanda Robla <yroblamo@redhat.com>
Fri, 12 Jul 2019 09:47:27 +0000 (11:47 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Fri, 12 Jul 2019 09:49:50 +0000 (11:49 +0200)
We are setting some paths by default in GOPATH, but it
is important to inherit the ones from the environment,
to support all deployments.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I627f363d035e2da76e59e74e58d7822df0a39b81

Makefile

index 163bdeb..992623b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-GOPATH=$(shell pwd)/vendor:$(shell pwd):"${HOME}/go"
+export GOPATH:="${GOPATH}":$(shell pwd)/vendor:$(shell pwd):"${HOME}/go"
 GOBIN=$(shell pwd)/bin
 GOFILES=$(wildcard *.go)
 GONAME="knictl"