我之前遇到过安装包的问题,但突然之间我收到了这条消息:
package github.com/golang/lint/golint
imports github.com/golang/lint
imports go/types: unrecognized import path "go/types"
package github.com/golang/lint/golint
imports github.com/golang/lint
imports golang.org/x/tools/go/gcimporter15
imports golang.org/x/tools/go/gcimporter15
imports golang.org/x/tools/go/gcimporter15: no buildable Go source files in /go/src/golang.org/x/tools/go/gcimporter15
继承我的GO env输出:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/student/Documents/GO_WORKSPACE"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"