Open kai-zer-ru opened 6 years ago
I can't reproduce this, same version of go but on linux. I cleaned out my go/src
and it compiles with what is just in vendor. I'm not sure if this variable still does anything, but maybe you have GO15VENDOREXPERIMENT
set?
Maybe try the command with a -u
to update?
[keegan@archcliche ~]$ rm -rf go/src
[keegan@archcliche ~]$ go get -v github.com/sourcegraph/go-langserver
github.com/sourcegraph/go-langserver (download)
github.com/sourcegraph/go-langserver/vendor/github.com/hashicorp/golang-lru/simplelru
github.com/sourcegraph/go-langserver/vendor/github.com/hashicorp/golang-lru
github.com/sourcegraph/go-langserver/vendor/github.com/neelance/parallel
github.com/sourcegraph/go-langserver/vendor/github.com/gogo/protobuf/proto
github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/basictracer-go/wire
github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/log
github.com/sourcegraph/go-langserver/vendor/golang.org/x/net/context
github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go
github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/ext
github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/basictracer-go
github.com/sourcegraph/go-langserver/vendor/github.com/pmezard/go-difflib/difflib
github.com/sourcegraph/go-langserver/vendor/github.com/beorn7/perks/quantile
github.com/sourcegraph/go-langserver/vendor/github.com/golang/protobuf/proto
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/client_model/go
github.com/sourcegraph/go-langserver/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/common/model
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/common/expfmt
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/procfs/internal/util
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/procfs/nfs
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/procfs/xfs
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/procfs
github.com/sourcegraph/go-langserver/vendor/github.com/prometheus/client_golang/prometheus
github.com/sourcegraph/go-langserver/vendor/github.com/slimsag/godocmd
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/godoc/vfs
github.com/sourcegraph/go-langserver/vendor/github.com/sourcegraph/ctxvfs
github.com/sourcegraph/go-langserver/langserver/internal/gocode
github.com/sourcegraph/go-langserver/langserver/internal/godef/go/parser
github.com/sourcegraph/go-langserver/langserver/internal/godef/go/types
github.com/sourcegraph/go-langserver/langserver/internal/godef
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/go/ast/astutil
github.com/sourcegraph/go-langserver/langserver/internal/refs
github.com/sourcegraph/go-langserver/pkg/lsp
github.com/sourcegraph/go-langserver/langserver/util
github.com/sourcegraph/go-langserver/pkg/lspext
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/go/buildutil
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/refactor/importgraph
github.com/sourcegraph/go-langserver/pkg/tools
github.com/sourcegraph/go-langserver/vendor/github.com/sourcegraph/jsonrpc2
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/go/loader
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/go/types/typeutil
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/internal/fastwalk
github.com/sourcegraph/go-langserver/vendor/golang.org/x/tools/imports
github.com/sourcegraph/go-langserver/langserver
github.com/sourcegraph/go-langserver
[keegan@archcliche ~]$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/keegan/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/keegan/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build401139434=/tmp/go-build -gno-record-gcc-switches"
[keegan@archcliche ~]$ go version
go version go1.10.3 linux/amd64
[keegan@archcliche ~]$ find go/src -mindepth 3 -maxdepth 3
go/src/github.com/sourcegraph/go-langserver
I get this error when I run
➜ go get -v github.com/sourcegraph/go-langserver github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/globaltracer.go:13:29: undefined: Tracer ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/globaltracer.go:20:21: undefined: Tracer ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/globaltracer.go:25:46: undefined: StartSpanOption ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/globaltracer.go:25:63: undefined: Span ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/globaltracer.go:30:30: undefined: Tracer ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:11:48: undefined: Span ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:21:43: undefined: Span ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:43:78: undefined: StartSpanOption ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:43:96: undefined: Span ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:48:121: undefined: Span ../github.com/sourcegraph/go-langserver/vendor/github.com/opentracing/opentracing-go/gocontext.go:48:121: too many error
➜ go env GOARCH="amd64" GOBIN="" GOCACHE="/Users/kaizer/Library/Caches/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/kaizer/Go" GORACE="" GOROOT="/usr/local/Cellar/go/1.10.3/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lf/ck4x9prs4x50n3txz5f9g9cw0000gn/T/go-build482969657=/tmp/go-build -gno-record-gcc-switches -fno-common"