This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push:
new 673d713 Makefile: Fix gopath in command (#21)
673d713 is described below
commit 673d7131ffd4b786a2431e777f0c6055de6d8b69
Author: dahn <[email protected]>
AuthorDate: Sat Jun 23 21:17:35 2018 +0200
Makefile: Fix gopath in command (#21)
Fixes build failures in some environments.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d32b6be..235ec03 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ M = $(shell printf "\033[34;1m▶\033[0m ")
.PHONY: all
all: fmt vendor | $(BASE) ; $(info $(M) Building executable…) @ ## Build
program binary
- $Q cd $(BASE) && $(GO) build \
+ $Q cd $(BASE) && GOPATH=$(GOPATH) $(GO) build \
-tags release \
-ldflags '-s -w -X $(PACKAGE)/cmd.Version=$(VERSION) -X
$(PACKAGE)/cmd.BuildDate=$(DATE)' \
-o bin/$(PACKAGE) cmk.go