Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/build: go get errors on added sourcegraph dependency #28828

Closed
Skarlso opened this issue Nov 16, 2018 · 1 comment
Closed

go/build: go get errors on added sourcegraph dependency #28828

Skarlso opened this issue Nov 16, 2018 · 1 comment

Comments

@Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Nov 16, 2018

What version of Go are you using (go version)?

$ go version
1.11.2 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
❯ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/gbrautigam/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gbrautigam/go"
GOPROXY=""
GORACE=""
GOROOT="/Users/gbrautigam/gohome"
GOTMPDIR=""
GOTOOLDIR="/Users/gbrautigam/gohome/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/gbrautigam/gohome/src/github.com/golang/build/go.mod"
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/1n/k6w9b2g51hg_dhlh_c8q9q8r0000gn/T/go-build765178128=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

While export GO111MODULE=on.

git clone git@github.com:golang/build.git
cd build
go get ./...

What did you expect to see?

Everything is working fine.

What did you see instead?

❯ go get ./...
go: sourcegraph.com/sourcegraph/go-diff@v0.5.0: unrecognized import path "sourcegraph.com/sourcegraph/go-diff" (parse https://sourcegraph.com/sourcegraph/go-diff?go-get=1: no go-import meta tags ())
go: error loading module requirements

Commit that brought in that dependency happened 17 days ago here:
golang/build@56b8367

@Skarlso

This comment has been minimized.

Copy link
Contributor Author

@Skarlso Skarlso commented Nov 16, 2018

Interestingly, my company's IP was blacklisted on a CDN network which made all sorts of weirdness. Apparently it also affected go get.... :O I used a VPN and spoofed my IP and suddenly go get worked.

@Skarlso Skarlso closed this Nov 16, 2018
@golang golang locked and limited conversation to collaborators Nov 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.