Skip to content

cmd/doc: go doc <Symbol> shows "." as package import path #60645

Open
@hyangah

Description

@hyangah

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

$ go version
go version devel go1.21-4dae3bbe0e Tue Jun 6 20:24:31 2023 +0000 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

Ran go doc <symbol>

project/mod/modfile$ go doc AutoQuote
package modfile // import "."
...

See // import ".".
Compare it with the package doc mode output.

project/mod/modfile$ go doc
package modfile // import "golang.org/x/mod/modfile"
...

What did you expect to see?

Current package's import path.

What did you see instead?

Always // import ".".

Metadata

Metadata

Assignees

No one assigned

    Labels

    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