You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But my plugin use a custom autoloader (to check if tools are really installed or not), and not the default Composer Autoloader.
Important
This is my recommendation : check if your --bootstrap flag used the correct file
After reinstalling the hook with correct command: (if my use case, because I've a custom autoloader) vendor/bin/captainhook install --configuration=captainhook.json --bootstrap=autoload.php --only-enabled
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Note
This discussion is to alert Users that could run in trouble if you use a CaptainHook plugin that use a custom autoloader
Recently, I found issue with hooks installed that use my plugin https://github.com/llaville/captainhook-bin-plugin
I did not understood what was WRONG with
git commit, because when I checked my hook with CaptNhook:pre-commitcommand, all was RIGHT !Output
As the path to tools executable was not correct, I've though first that it came from my plugin, but this context was already fixed in version 1.0.2
So what are differences between live hook and CaptN hook checking command ?
I saw what are origin of this issue, when I look into hook installed
This hook was installed via Composer, with command :
vendor/bin/captainhook install --configuration=captainhook.json --only-enabledFor example : https://github.com/llaville/box-manifest/blob/4.3.0/composer.json#L63-L66
But my plugin use a custom autoloader (to check if tools are really installed or not), and not the default Composer Autoloader.
Important
This is my recommendation : check if your
--bootstrapflag used the correct fileAfter reinstalling the hook with correct command: (if my use case, because I've a custom autoloader)
vendor/bin/captainhook install --configuration=captainhook.json --bootstrap=autoload.php --only-enabledAll run fine when applying live hook
Beta Was this translation helpful? Give feedback.
All reactions