[Bug 1743452] Re: Symlinks under $GOROOT break godoc
Julian Alarcon
1743452 at bugs.launchpad.net
Mon Dec 27 18:54:49 UTC 2021
It is still broken on Ubuntu 22.04 (dev release) with go v1.17
** Also affects: golang-1.17 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: golang (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.10 in Ubuntu.
https://bugs.launchpad.net/bugs/1743452
Title:
Symlinks under $GOROOT break godoc
Status in golang package in Ubuntu:
New
Status in golang-1.10 package in Ubuntu:
Confirmed
Status in golang-1.11 package in Ubuntu:
New
Status in golang-1.17 package in Ubuntu:
New
Status in golang-1.9 package in Ubuntu:
Confirmed
Bug description:
If I attempt to run `godoc -http=:6060` I get this error:
2018/01/15 13:56:07 godoc: corpus fstree is nil
Some googling brought me to this go core bug -
https://github.com/golang/go/issues/15049
On closing the bug, Russ Cox says "I think this is basically working
as intended. Every time anyone tries to make godoc do more with
symlinks it ends up chasing its own tail. Symlinks in Go file trees
should just be disallowed, honestly."
Of course, I realize that the symlinks are there to put things where
the FHS says they should be, but Go knows the one true way to do
everything, and it says "don't do that". And since it's Go, not only
does it say "don't do that", it breaks in the presence of it and will
never be changed to work any other way.
In this case, I think getting godoc to work trumps the FHS.
I'm sure this applies to other golang-1.X packages too, but I haven't
looked at them.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1743452/+subscriptions
More information about the foundations-bugs
mailing list