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

cmd/go: `go mod graph` doesn't return an error in GOPATH mode #31237

Open
jadekler opened this Issue Apr 3, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@jadekler
Copy link
Contributor

commented Apr 3, 2019

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

$ go version
go version go1.12 linux/amd64

Does this issue reproduce with the latest release?

Yes.

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

go env Output
deklerk at deklerk in ~/workspace/go/src/cloud.google.com/go on master*
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/usr/local/google/home/deklerk/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/google/home/deklerk/workspace/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/google-golang"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/google-golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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=/tmp/go-build056735032=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go mod graph

What did you expect to see?

go: modules disabled inside GOPATH/src by GO111MODULE=auto; see 'go help modules'

What did you see instead?

Nothing. It just returned.

  • FWIW GO111MODULE=on go mod graph works as expected.
  • FWIW go mod tidy returns the error above as expected.

@andybons andybons changed the title `go mod graph` doesn't return an error cmd/go: `go mod graph` doesn't return an error Apr 3, 2019

@andybons andybons added this to the Unplanned milestone Apr 3, 2019

@andybons

This comment has been minimized.

Copy link
Member

commented Apr 3, 2019

@bcmills bcmills changed the title cmd/go: `go mod graph` doesn't return an error cmd/go: `go mod graph` doesn't return an error in GOPATH mode Apr 12, 2019

@bcmills bcmills modified the milestones: Unplanned, Go1.13 Apr 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.