phar-io / composer-distributor

Distribute PHAR files via Composer
Other
12 stars 2 forks source link

Feature/error handling #18

Closed sebastianfeldmann closed 3 years ago

sebastianfeldmann commented 3 years ago

Output without GnuPG

$ composer require --dev captainhook/captainhook-phar
Using version ^5.4 for captainhook/captainhook-phar
./composer.json has been updated
Running composer update captainhook/captainhook-phar
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking captainhook/captainhook-phar (5.4.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing captainhook/captainhook-phar (5.4.3): Extracting archive

    WARNING
    No GPG installation found! Use installed PHARs with care.
    Consider installing GnuPG to verify PHAR authenticity.
    If you need help installing GnuPG visit http://phar.io/install-gnupg

  - Downloading artifact from https://github.com/captainhookphp/captainhook/releases/download/5.4.3/captainhook.phar
  - No GnuPG found to verify signature! Use this file with care!
Generating autoload files
2 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Uninstall output

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 1 removal
  - Removing captainhook/captainhook-phar (5.4.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Removing phar captainhook
  - Removing captainhook/captainhook-phar (5.4.3)
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!

TODO: Setup http://phar.io/install-gnupg with some basic hints on how to install GnuPG

sebastianfeldmann commented 3 years ago

ping @heiglandreas ;)