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