Skip to content

x/exp/cmd/gorelease: report when packages can't be loaded without replace, exclude #37559

Open
@jayconrod

Description

@jayconrod

replace and exclude directives can be used in go.mod files to temporarily work around problems in dependencies while they are fixed upstream. They're also used in local development. replace and exclude only apply within the main module, so if a module can't be used by another without replace and exclude directives, it shouldn't be released.

gorelease currently loads type information for packages without replace and exclude directives and reports errors. If it sees errors, it should try loading with replace and exclude directives. If that succeeds, gorelease should note that as a possible cause for errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions