From e5fad9b928b22a80a5c281348730341c3207e0bd Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 6 Mar 2020 11:47:48 +0800 Subject: [PATCH] improve makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0a5e05..031f7d5 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ GITEA_SDK_TEST_URL ?= http://localhost:3000 GITEA_SDK_TEST_USERNAME ?= test01 GITEA_SDK_TEST_PASSWORD ?= test01 +export GO111MODULE=on + .PHONY: all all: clean test build @@ -42,7 +44,7 @@ lint: .PHONY: revive revive: @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) get -u github.com/mgechev/revive; \ + cd /tmp && $(GO) get -u github.com/mgechev/revive; \ fi revive -config .revive.toml -exclude=./vendor/... ./... || exit 1 -- 2.40.1