From 06746ff6d0efe0fe3a23cc4df900c16b46e142a1 Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Mon, 21 Aug 2017 14:56:12 -0500 Subject: [PATCH] unset GOBIN in Makefile If the GOBIN environment variable is set to a non-default location relative to GOPATH, then promu will be built in this location and the the build will fail because it tries to run $GOPATH/bin/promu. See also issue #483 and #492 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index becebdec5..927e3999a 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Ensure GOBIN is not set during build so that promu is installed to the correct path +unexport GOBIN + GO ?= go GOFMT ?= $(GO)fmt FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))