x/tools/cmd/godoc: better output when running with GOMOD=/dev/null #35476
Labels
FrozenDueToAge
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
When running
godoc
in module mode while outside of any module (i.e., wherego env GOMOD
reports/dev/null
),godoc
displays only the Go packages that are available in the standard library, which is expected per design in #33655 (comment).However, the current output isn't very user friendly:
It can be improved by detecting when the GOMOD value is
/dev/null
and treating it differently than other paths. Specifically, there isn't a need to try to fill the module cache in that case./cc @bcmills @jayconrod FYI, and please let me know if you notice that I'm overlooking something.
The text was updated successfully, but these errors were encountered: