Skip to content

Pre-commit: goreleaser-check fails on repos without a git remote #39

@HarryCampion

Description

@HarryCampion

Problem

goreleaser check requires a configured git remote to validate the release config. New repos (or local clones without a remote configured) fail this hook with:

no remote configured to list refs from

Suggestion

Either skip the hook when no remote is configured (e.g. via --skip-validate flag or a wrapper script that checks for remotes first), or prominently document that git remote add origin <url> is a prerequisite before running pre-commit hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions