Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Hook fails when multiple packer.json are staged. #2

@bosmak-alt

Description

@bosmak-alt

I have a mono repo where all my packer recipes are defined.

It basically follows this format

service-a/packer.json
service-b/packer.json

But when multiple services are staged the hook fails.

Expected Behavior

The hook should be executed for each of the files.

Current Behavior

The hook fails and prints the CLI help text for the packer-validate/packer fix commands.

Steps to Reproduce

Stage both packer.json files following the folder structure reported above.

Environment

1.) Output of pre-commit --version

pre-commit 2.7.1

2.) Any other relevant environment information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions