Skip to content

x/tools/go/analysis: add GoMod, ... fields to Module #73878

Description

@AkihiroSuda

Status: accepted, implementation in progress:


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

    ProposalProposal-AcceptedToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Accepted

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions