fix(env):

fix `GOROOT`
pull/31/head
hxzhao527 2018-12-27 08:50:48 +08:00 committed by kun
parent 043c484e5e
commit 98338ce2aa
2 changed files with 1 additions and 1 deletions

View File

@ -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}

View File

@ -3,7 +3,6 @@
go env
export GO111MODULE=on
export GOROOT=/usr/local/go
go generate
go mod tidy