x/tools/cmd/godoc: prevent the the httptest.serve flag #28138
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
x/tools/cmd/godoc uses the usually-test-only net/http/httptest package.
But because httptest assumes it's running in a test, it registers its own flags, which means godoc ends up with mysterious flags:
Either stop using in httptest in godoc, or change httptest to somehow conditionally register that flag. Perhaps only if it looks like we're in a test binary. (check lookup of other testing flags?)
The text was updated successfully, but these errors were encountered: