-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/cmd/godoc: corpus fstree is nil #59431
Comments
CC @golang/tools-team |
x/tools/cmd/godoc is deprecated. Can you please try https://pkg.go.dev/golang.org/x/pkgsite/cmd/pkgsite to see if it resolves your problem? |
Yes, this one works. Is the intention to rename it to |
For what it's worth, I expected some incantation of |
@jsumners unfortunately there is a long history of confusion regarding This is one of the reasons we decided not to call pkgsite godoc! |
As a neophyte Go person, I'd suggest making it easier instead of more complicated. As I mentioned, I expected this functionality in I can tell you that I would never recognize |
@jsumners thanks for that feedback. You are right that there is a discoverability problem. |
I got the solution on an old issue #15049 godoc -http=:6060 -goroot /usr/share/go |
The godoc command was deprecated. |
That may be, but re-read the thread: the current state is not obvious. |
see #68106 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go install golang.org/x/tools/cmd/godoc@latest
godoc -http :3000
to preview the documentationWhat did you expect to see?
A working documentation server so that I could verify that the docs I am writing appear as I intend them to.
What did you see instead?
Research indicates that this is some problem with
godoc
not resolving symlinks. I use https://github.com/stefanmaric/g to manage my Go installs. So myGOROOT
looks like:I expect that such an install is not uncommon. It seems to me that the
godoc
util should resolve symlinks.The text was updated successfully, but these errors were encountered: