x/tools/cmd/godoc: Path mapping of module name is incorrect #37729
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?What version of godoc are you using?
Latest version. Installed with:
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In my organization, we host on Gitlab and projects are namespaced with their "groups". My module and VCS name are
git.$organization.com/$group/my-project
.When I run
godoc -http=:6060
in root and click on the packagegit.$organization
I see the following error in the terminal:This results in a broken UI and thus my packages aren't listed correctly.
go list -m all
list correctly all packages and modules but godoc doesn't display them.The workaround is to remove
$group
name from the module name and update all places accordingly. I'm not aware of such a constraint.go.mod
What did you expect to see?
I would expect to see all my packages and modules as listed with
go list -m all
What did you see instead?
Only one entry with the name of my organization
git.$organization.com
can be seen in "Third party". It looks like the current implementation can't handle arbitrary module names especially when they can't be mapped to the local filesystem.According to @dmitshur this can be related to https://golang.org/cl/205661.
Related: #26827
The text was updated successfully, but these errors were encountered: