Skip to content

pre-commit hook failed when committing multiple jsonnet files #543

@thombashi

Description

@thombashi

pre-commit hook of jsonnet-lint failed when passing multiple jsonnet files.

$ pre-commit run --files a.jsonnet b.jsonnet
jsonnetfmt...............................................................Passed
jsonnet-lint.............................................................Failed
- hook id: jsonnet-lint
- exit code: 1

ERROR: only one file is allowed

Therefore, if you install the pre-commit hook, commits that involve changes to multiple jsonnet files will fail.
This is a little bit inconvenient for development.

Is there any reason to jsonnet-lint accept only one file?
May I open a pull request to change to accept multiple jsonnet files?

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