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.
Problem
goreleaser checkrequires a configured git remote to validate the release config. New repos (or local clones without a remote configured) fail this hook with:Suggestion
Either skip the hook when no remote is configured (e.g. via
--skip-validateflag or a wrapper script that checks for remotes first), or prominently document thatgit remote add origin <url>is a prerequisite before running pre-commit hooks.