0

我在安装包时遇到问题,它以前可以工作,但突然我收到了这条消息:

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 环境输出:

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"
4

0 回答 0