Skip to content

cmd/doc: confusing error when a name does not exist #22810

@mvdan

Description

@mvdan

What version of Go are you using (go version)?

go version devel +da360f30e9 Sat Nov 18 06:31:57 2017 +0000 linux/amd64

Does this issue reproduce with the latest release?

No - this is fine on Go 1.9.2.

What did you do?

$ go doc bytes foo
doc: no such package: bytes
exit status 1

What did you expect to see?

The same that Go 1.9.2 gives:

$ go doc bytes foo
doc: no symbol foo in package bytes
exit status 1

Seems like a regression in 1.10 - will look into it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions