Skip to content

cmd/go/internal/modload: refactor error handling #35862

Description

@jayconrod

A number of exported functions in modload call base.Errorf and base.Fatalf. Instead of printing to stderr and exiting, functions in this package should return errors (ideally structured errors). This will make commands with non-standard error handling like go list -e, go build -n, and go mod download -json easier to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoCommandcmd/goNeedsFixThe path to resolution is known, but the work has not been done.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions