In case of problems with GPG key try:
gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32
Thanks @bickman2k, @system7
Git Clone URL: | https://aur.archlinux.org/php-codesniffer.git (read-only, click to copy) |
---|---|
Package Base: | php-codesniffer |
Description: | PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards. |
Upstream URL: | https://github.com/PHPCSStandards/PHP_CodeSniffer |
Licenses: | BSD |
Submitter: | None |
Maintainer: | sender |
Last Packager: | sender |
Votes: | 63 |
Popularity: | 0.000000 |
First Submitted: | 2010-06-13 09:00 (UTC) |
Last Updated: | 2025-09-07 13:02 (UTC) |
In case of problems with GPG key try:
gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32
Thanks @bickman2k, @system7
Ehh... I just saw that, this is abandoned. Then, I change the install method. Ty.
Another error again
==> Verifying source file signatures with gpg...
phpcs-3.10.1.phar ... FAILED (invalid public key 689DAD778FF08760E046228BA978220305CD5C32)
phpcbf-3.10.1.phar ... FAILED (invalid public key 689DAD778FF08760E046228BA978220305CD5C32)
==> ERROR: One or more PGP signatures could not be verified!
-> error making: php-codesniffer-exit status 1
-> Failed to install the following packages. Manual intervention is required:
php-codesniffer - exit status 1
just after I imported the new one
$ gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32
gpg: key A978220305CD5C32: public key "Juliette Reinders Folmer (Release key for PHPCS) <juliette@phpcodesniffer.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
I had to change the validpgpkeys to be 689DAD778FF08760E046228BA978220305CD5C32 on the latest version. I was successfully able to build after making this change.
Apparently the gpg keys cannot be found
❯ gpg --keyserver keys.openpgp.org --recv-keys 5E6DDE998AB73B8E
gpg: key 5E6DDE998AB73B8E: no user ID
gpg: Total number examined: 1
Mea culpa - failed to update the URLs properly. In my defense: I am traveling and was in the Honduras jungle at that time ;) Should be working now.
Try gpg --keyserver keys.openpgp.org --recv-keys 5E6DDE998AB73B8E
as for importing the right key.
This repository has been abandoned. Its successor is PHPCSStandards/PHP_CodeSniffer (as written on the homepage of the project https://github.com/squizlabs/PHP_CodeSniffer). The files should point to the new releases on https://github.com/PHPCSStandards/PHP_CodeSniffer/
can't import key 95DE904AB800754A11D80B605E6DDE998AB73B8E
There is an error
-> Downloading phpcs-3.9.2.phar...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 9 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (56) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.9.2/phpcs.phar
Aborting...
-> error downloading sources: /home/system7/.cache/yay/php-codesniffer
context: error downloading sources: /home/system7/.cache/yay/php-codesniffer
context: exit status 1
:: (1/2) Parsing SRCINFO: php-codesniffer-phpcsutils
:: (2/2) Parsing SRCINFO: php-codesniffer
gpg: error reading key: No public key
:: PGP keys need importing:
-> 95DE904AB800754A11D80B605E6DDE998AB73B8E, required by: php-codesniffer
:: Import? [Y/n]
:: Importing keys with gpg...
gpg: keyserver receive failed: No data
-> problem importing keys
==> ERROR: Failure while downloading https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.9.2/phpcs.phar Aborting... -> error making: php-codesniffer-exit status 1 -> Failed to install the following packages. Manual intervention is required: php-codesniffer - exit status 1
Pinned Comments
sender commented on 2025-06-18 10:56 (UTC) (edited on 2025-06-18 10:56 (UTC) by sender)
In case of missing PGP-key run:
gpg --keyserver hkps://keys.openpgp.org --recv-keys D91D86963AF3A29B6520462297B02DD8E5071466
Note: the previous PGP-key for juliette@phpcodesniffer.com expired in May 2025. If desired you can list all keys associated with that account via
gpg --list-keys juliette@phpcodesniffer.com
and remove expired ones viagpg --delete-key <insert-key-id>
.