Skip to content

cmd/go: go doc -http downloads a module without license file #78450

@hyangah

Description

@hyangah

Go doc command pulls the old version of the golang.org/x/pkgsite/cmd/internal/doc module

const version = "v0.0.0-20251223195805-1a3bd3c788fe"

That version is missing the LICENSE file so module proxy does not cache it effectively.
We need to update the version.

$ go version
go version go1.26.1 darwin/arm64
$ go doc -http strings
go: downloading golang.org/x/pkgsite v0.0.0-20251223195805-1a3bd3c788fe
go: downloading golang.org/x/pkgsite/cmd/internal/doc v0.0.0-20251223195805-1a3bd3c788fe
^C^C^C^C^C^C^C^C^C^C^C^C^Cc^C
^C^C^C^X^C^Z
[1]+  Stopped                 go doc -http strings

Extra problems to follow up:

  • As we release new go versions, it would be nice if we ensure this module to get updated like other golang.org/x dependencies.
  • Ctrl+C didn't work when it got stuck. (Should I open a new issue)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions