Skip to content

Pre-commit: duplicate keys in goreleaser-check hook definition #41

@HarryCampion

Description

@HarryCampion

Problem

In .pre-commit-config.yaml, the local goreleaser-check hook has duplicated files and pass_filenames keys. YAML last-value-wins semantics means the first occurrence of each key is silently ignored.

This is a latent bug — the hook may not be filtering or skipping filenames as intended, and the config is misleading to anyone reading it.

Suggestion

Deduplicate the keys so there is exactly one files entry and one pass_filenames entry in the hook definition.

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