0

我安装了 go1.8,我正在尝试将 govendor 用于一个项目,但似乎我做错了什么。错误说我需要检查我的 $GOPATH,但它已经设置好了。是不是设置错了路径?

bash-3.2$ pwd
/Users/rsimari/Go   

bash-3.2$ govendor init
Error: Missing GOPATH. Check your environment variable GOPATH.
bash-3.2$ echo $GOPATH
/Users/rsimari/Go
bash-3.2$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rsimari/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-
map=/var/folders/_3/kx93r31s2l97vj436m8vdndc0000gn/T/go-
build687682041=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
4

0 回答 0