Open flexponsive opened 3 weeks ago
I have a guess why it breaks. Could you try to add some debug output to
vendor/phar-io/gnupg/src/GnuPG.php
and add print_r($status);
to line 106
to check what gpg
actually does?
I think the output parsing is somewhat broken.
And of course it works on my machine :(
composer install
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading captainhook/captainhook-phar (5.22.2 => 5.23.5)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Upgrading captainhook/captainhook-phar (5.22.2 => 5.23.5): Extracting archive
- Downloading artifact from https://github.com/captainhookphp/captainhook/releases/download/5.23.5/captainhook.phar
- PHAR signature successfully verified
Generating autoload files
2 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
I also created some integration build that check the installation. You can check it out here:
https://github.com/captainhookphp/captainhook-phar/actions/runs/11406757859/job/31741218378
When running
composer require --dev captainhook/captainhook-phar:5.23.5
, I get a GpgError and the installation aborts without avendor/bin/captainhook
file being created.Installing the full source version with
composer require --dev captainhook/captainhook
works as expected.Below follows some diagnostic info referring to the installation of the phar version only:
After this error, the installation aborts. If I try to re-run the same install command, the error is not printed again but I also don't get a
vendor/bin/captainhook
file. If I remove and re-install the package, the same GnuPg error again appears.Composer is at the latest version:
Manually verifying the signature on terminal: