cmd/go: go list cmd
fails to resolve imports with Go Modules on
#31389
Labels
go list cmd
fails to resolve imports with Go Modules on
#31389
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm able to reproduce this in the golang:1.12.3 docker image from hub.docker.com. This is also reproduced on my local dev machine as well.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
A tool I use in my automation pipeline ultimately calls
go list cmd
among other calls. This results in an error whengo modules
are enabled.I've been using docker images for clean environments to reproduce
Attempt to list
cmd
packagesWhat did you expect to see?
$ GO111MODULE=on go list cmd cmd/addr2line cmd/api cmd/asm cmd/asm/internal/arch cmd/asm/internal/asm cmd/asm/internal/flags cmd/asm/internal/lex cmd/buildid cmd/cgo # ... continues w/o error
GO111MODULE=on go list cmd
Full OutputWhat did you see instead?
GO111MODULE=on go list cmd
Full OutputThe text was updated successfully, but these errors were encountered: