-
(I'm posting here as https://github.com/captainhookphp/captainhook-phar doesn't have a discussions section) pre-commit:
- CaptainHook\Phar\CaptainHook\App\Hook\PHP\Action\Linting : failed
captainhook failed executing all actions, took: 0.05s
CaptainHook\Phar\CaptainHook\App\Hook\PHP\Action\Linting
command output:
sh: 1: CaptainHookPharCaptainHookAppHookPHPActionLinting: not found
failed to execute: CaptainHook\Phar\CaptainHook\App\Hook\PHP\Action\Linting This is the config for that hook: "pre-commit": {
"enabled": true,
"actions": [
{
"action": "CaptainHook\\Phar\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting"
},
{
"action": "bin/phpunit --configuration phpunit.xml.dist tests/Unit"
},
{
"action": "bin/ecs"
}
]
}, What have I missed? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
aruku
Mar 6, 2024
Replies: 1 comment 1 reply
-
The action field was missing the initial \ (escaped); should be like so: {
"action": "\\CaptainHook\\Phar\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting"
}, I'll try to find the time to submit a PR as this is the config the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aruku
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The action field was missing the initial \ (escaped); should be like so:
I'll try to find the time to submit a PR as this is the config the
configure
command generated.