-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit fails on multiple changed files #76
Comments
By default, I think the pre-commit script is supposed to invoke the native I can think of a few different interpretations of this issue:
I'll whack a |
@mpalmer thanks for the swift reply! I was not aware of the distinction between the native binary and the npm version. I retried with the native binary and it does work as expected. I could not find clear instructions on this difference and the need for the native binary for the pre-commit integration in the README. So, I think 1. is the most appropriate. |
Thanks for the feedback. I'll see what I can do to make it more obvious that the npm version is very, very Not Recommended. |
The pre-commit integration fails when more than one GH actions file is changed within a single commit.
The pre-commit check fails with
Using
strace
reveals that pre-commit attempts to invoke action-validator with multiple files at onceTrying to invoke action-validator in the same way on the command line directly leads to the same error.
This seems related to #41, but I've raised it as a standalone issue since it occurred in the pre-commit integration specifically and that wasn't mentioned on that other issue. Feel free to close this as duplicate if you prefer to track this under #41 as well.
The text was updated successfully, but these errors were encountered: