]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: treat any non-empty GOMOD as module mode
authorBryan C. Mills <bcmills@google.com>
Wed, 28 Nov 2018 21:22:05 +0000 (16:22 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 29 Nov 2018 18:59:50 +0000 (18:59 +0000)
commitec4de31c5c4230dd70050c4c58def88e811b8fb5
tree2c02d5940154ea8c989b144885f94378825056a4
parentc37b6ecc8ae90fad4c3bde947d96487820cdceec
cmd/doc: treat any non-empty GOMOD as module mode

Previously, we were looking for the string go.mod specifically, but
the module-mode-outside-a-module logic added in CL 148517 sets GOMOD
to os.DevNull

Updates #28992

Change-Id: I62a4baaa911a495350294d78bae96be3fe4866cb
Reviewed-on: https://go-review.googlesource.com/c/151617
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/doc/dirs.go