Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go list needs a -fmt -json mode like go mod edit #30503
$ go version go version go1.12 linux/amd64 $ go list -json ./... go: finding github.com/… … fatal: unable to access 'https://github.com/…': Could not resolve host: github.com
→ No useful output. I don’t care if some json fields would be better populated with network access, just because you ask json output does not mean you will use every single json field.
$ go mod edit -fmt -json go.mod
→ just works.
$ GO111MODULE=off go list -json ./...
→ works but