Join GitHub today
x/tools/cmd/godoc: prevent the the httptest.serve flag #28138
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?)