Skip to content

proposal: x/tools/go/analysis: add GoMod field to Pass.Module #73878

Open
golang/tools
#577
@AkihiroSuda

Description

@AkihiroSuda

Proposal Details

Currently, https://pkg.go.dev/golang.org/x/tools/go/analysis#Module lacks GoMod string (path to go.mod) that is present in https://pkg.go.dev/golang.org/x/tools/go/packages#Module .

My proposal is to expose GoMod in https://pkg.go.dev/golang.org/x/tools/go/analysis#Module so that linter implementations can determine the path of go.mod.

go.mod (w/ go.sum in the same dir) is needed by my linter https://github.com/AkihiroSuda/gosocialcheck to check the reputation of dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    Status

    Incoming

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions