Skip to content
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/website/cmd/golangorg: third party package documentation does not load in the browser any more #45986

Closed
kevinburke1 opened this issue May 6, 2021 · 3 comments

Comments

@kevinburke1
Copy link

For years now, I have laid out source code on my local computer by setting GOPATH to /Users/kevin so repositories get checked out to /Users/kevin/src/github.com/inconshreveable/log15, for example. I frequently need to inspect the source code of third party dependencies, and keeping them all checked out in GOPATH mode is the easiest way to inspect/grep/edit the source code I need.

I also run a godoc (now, golangorg) browser locally to view the documentation for different packages, and to be able to test what documentation will look like in a browser without needing to push it to a remote and then view via e.g. godoc.org. I wrote a shim that wraps around the godoc command that I use to automate starting/opening a browser, available here https://github.com/kevinburke/godocdoc. So I can go to e.g. http://localhost:6060/pkg/github.com/inconshreveable/log15 and view the documentation for that package with near-instantaneous reloading when I edit the documentation.

Some time recently, that stopped working. If I start the golangorg binary and try to visit http://localhost:6060/pkg/github.com/inconshreveable/log15, here's what I get:

File github com:inconshreveable:log15 - The Go Programming Language 2021-05-05 21-02-58

I'd appreciate instructions on what I need to do in order to view source code in a browser locally. I'm happy to provide more information about my setup if that's helpful.

@gopherbot gopherbot added this to the Unreleased milestone May 6, 2021
@seankhliao
Copy link
Member

godoc continues to work, golangorg isn't intended to serve documentation

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@kevinburke1
Copy link
Author

To be clear, I was reporting a regression, the command used to serve documentation and now it doesn't.

@seankhliao
Copy link
Member

golang.org no longer needs to serve documentation, so the removal of is intended

@golang golang locked and limited conversation to collaborators May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants