1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:06:09 -07:00
go/cmd/godoc
Dmitri Shuralyov 91381dc0ae cmd/godoc: don't execute go list -m all when GOMOD is /dev/null
When the GOMOD value is the operating system's null device, there
isn't a main module. Return an empty build list right away, since
running 'go list -m all' in Go 1.14 will cause a "cannot match "all":
working directory is not part of a module" error.

Fixes golang/go#35690
Updates golang/go#35728

Change-Id: I024ca3b7d774835140ce4a1625133aff6554a533
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208258
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-11-21 20:13:55 +00:00
..
doc.go cmd/godoc: re-add documentation for flat presentation mode 2019-02-19 03:57:21 +00:00
godoc_test.go cmd/godoc: don't execute go list -m all when GOMOD is /dev/null 2019-11-21 20:13:55 +00:00
goroot.go cmd/godoc: update findGOROOT 2019-10-07 18:40:23 +00:00
handlers.go cmd/godoc, godoc/static: remove remnants of golang.org website 2019-11-20 19:55:55 +00:00
main.go cmd/godoc: don't execute go list -m all when GOMOD is /dev/null 2019-11-21 20:13:55 +00:00