Half of my CI jobs fail due to "Trying to connect to keys.openpgp.org" when using #Phive to download tools.
I would use #Psalm as a Composer dependency, if I could, but it depends on an older version of #AMPHP than my project uses, so I'm installing it with Phive.
But this intermittent error is frustrating me. 🤬
@ramsey so I tried using #Phive in Github Actions and it failed badly. It can't install any of the dependency because it wants to ask to trust the GPG keys. The TTY is not interactive and everything else.
Did you have a similar issue? From what I can tell, the only way to make it work is to pass `--trust-gpg-keys` which is not handy.
@ramsey @OndrejMirtes Imho there are three options:
1) you install somehow the plugins and have some kind of autoloading before running phar (I have no clue how to do this)
2) you have a directory `tools` or something with a composer.json for your tools, so you are independent of your project composer
3) you compile your own phar files (which is like 2) but with more hassle :D)
Good luck and I'm happy to read the blog article!
P.S. #phive without plugin is awesome 🙈
I want to try to get past this, so I'm going to bite the bullet and finally learn how to use #Phive.
If I install #PsalmPHP or #PHPStan via Phive, how to I install plugins like psalm/plugin-phpunit and phpstan/phpstan-phpunit. I can't use `composer require` on these, since they also require the "parent" packages.
@theseer, any pointers?
Parramatta Library is quite an amazing building now 😁
#parramatta #parra #phive #library
RT @SenseException@twitter.com
I got phive on it
Grab your phars that you need
I got phive on it.
Not messin with deps conflict sh*t
I got phive on it
If security concerns let you bide
I got #phive on it.
It has verifications deep inside
🐦🔗: https://twitter.com/SenseException/status/1324775770603065344
There is also a ready to run #docker image for #phive where I just added some basic usage docs: https://github.com/hyperized/docker-phive/pull/1 😬
RT @localheinz@twitter.com
👋 Now that we can install composer with phive, how about installing phive with homebrew?
/cc @theseer@twitter.com @belanur@twitter.com
https://github.com/Homebrew/homebrew-core/pull/63740
🐦🔗: https://twitter.com/localheinz/status/1322241684386779138
RT @CaptainHookPHP@twitter.com
Version 5 of the Cap’n is available as PHAR that is conveniently installable via #phive from @phar_io@twitter.com #PHARAllTheTools
Just run `phive install captainhook`
🐦🔗: https://twitter.com/CaptainHookPHP/status/1219637641446072320