Skip to content

x/website/cmd/golangorg: third party package documentation does not load in the browser any more #45986

@kevinburke1

Description

@kevinburke1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions