From 98338ce2aa14e8cbe3b9741dd86b87931c0b3a5b Mon Sep 17 00:00:00 2001 From: hxzhao527 Date: Thu, 27 Dec 2018 08:50:48 +0800 Subject: [PATCH] fix(env): fix `GOROOT` --- build/generate.sh | 1 + circle-test.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/build/generate.sh b/build/generate.sh index 3252ba4..78426cc 100755 --- a/build/generate.sh +++ b/build/generate.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash PKG=${PWD}/pkg/ +GOROOT=`go env GOROOT` cp -r ${GOROOT}/src/cmd/go/internal/base ${PKG} cp -r ${GOROOT}/src/cmd/go/internal/cache ${PKG} cp -r ${GOROOT}/src/cmd/go/internal/cfg ${PKG} diff --git a/circle-test.sh b/circle-test.sh index e791742..9787cd9 100644 --- a/circle-test.sh +++ b/circle-test.sh @@ -3,7 +3,6 @@ go env export GO111MODULE=on -export GOROOT=/usr/local/go go generate go mod tidy