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

cmd/go: go doc does not understand module versioning #54338

Closed
crawshaw opened this issue Aug 8, 2022 · 2 comments
Closed

cmd/go: go doc does not understand module versioning #54338

crawshaw opened this issue Aug 8, 2022 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@crawshaw
Copy link
Member

crawshaw commented Aug 8, 2022

With:

go mod init junk
go get golang.org/x/crypto/blake2s
go get github.com/fxamacker/cbor/v2

I can run go doc blake2s and get package documentation. However I cannot similarly get docs for cbor:

go doc cbor
doc: no buildable Go source files in /tmp/junk
exit status 1

Even if I add a use of the package:

package main

import "github.com/fxamacker/cbor/v2"

type t cbor.Tag

func main() {
}

then go doc still cannot find it:

go doc cbor
doc: no symbol cbor in package /tmp/junk
exit status 1

Explicitly adding the version as go doc cbor/v2 works, but that involves always remembering the version.

@thanm thanm added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 9, 2022
@thanm thanm added this to the Backlog milestone Aug 9, 2022
@thanm
Copy link
Contributor

thanm commented Aug 9, 2022

@golang/tools-team

@seankhliao
Copy link
Member

Duplicate of #41501

@seankhliao seankhliao marked this as a duplicate of #41501 Aug 9, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
@golang golang locked and limited conversation to collaborators Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants