From 0f326449e856117d16431db9e4bf2280007c2fc1 Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 11 Apr 2016 11:58:07 +0800 Subject: [PATCH] build: fix --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72bbb12..bed1734 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ export PATH := $(GOPATH)/bin:$(PATH) +export OLDGOPATH := $(GOPATH) export GOPATH := $(shell pwd):$(GOPATH) all: build @@ -6,7 +7,8 @@ all: build build: godep fmt frps frpc godep: - @go get github.com/tools/godep + @GOPATH=$(OLDGOPATH) + go get github.com/tools/godep fmt: godep go fmt ./...