Package Details: php-codesniffer 3.12.1-3

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-04-08 09:09 (UTC)

Pinned Comments

sender commented on 2024-07-25 10:59 (UTC)

In case of problems with GPG key try:

gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32

Thanks @bickman2k, @system7

Latest Comments

1 2 3 4 5 6 7 Next › Last »

system7 commented on 2025-04-10 08:47 (UTC) (edited on 2025-04-10 08:49 (UTC) by system7)

@bickman2k Thank you for your explanation. With this info, I have more insight into the problem. I use yay actually, and last time I wanted to solve the problem w/ clean install, and after that I could not re-install the package, because the problem we discussed.

Next time, instead of scrambling I will wait for the fix. Thank you again.

bickman2k commented on 2025-04-09 20:00 (UTC)

@system7 Basically, the .phar files that get downloaded as a part of the package, they get their sha256 hash found and compared to what's defined in the PKGBUILD file. If you're using an AUR helper like paru, sometimes you can edit that file before building. Otherwise, if you download the PKGBUILD file, fix the sha256sum values for those files, then re-run makepkg, it should be corrected and build.

Why it breaks? I mean, it could be that the sha256 was set to one value and another change was made without updating the version or it was found for a different version or just not updated. Tough to say. Either way, @sender got it updated quickly so it could be built again successfully.

sender commented on 2025-04-08 09:12 (UTC)

Should be fixed now. Mea culpa for the disturbance on this one.

system7 commented on 2025-04-08 07:41 (UTC) (edited on 2025-04-08 07:45 (UTC) by system7)

@bickman2k what does it mean exactly? how to upgrade to the newest version? and btw, why it breaks always?

==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    phpcs-3.12.1.phar ... FAILED
    phpcs-3.12.1.phar.asc ... Skipped
    phpcbf-3.12.1.phar ... FAILED
    phpcbf-3.12.1.phar.asc ... Skipped
    licence-3.12.1.txt ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: /home/system7/.cache/yay/php-codesniffer 
     context: exit status 1 


:: (1/1) Parsing SRCINFO: php-codesniffer
pub   rsa4096 2024-05-20 [SC] [expires: 2025-05-20]
      689DAD778FF08760E046228BA978220305CD5C32
uid           [ unknown] Juliette Reinders Folmer (Release key for PHPCS) <juliette@phpcodesniffer.com>
sub   rsa4096 2024-05-20 [E] [expires: 2025-05-20]

==> Making package: php-codesniffer 3.12.1-1 (2025. ápr. 8., kedd, 09:44:02 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found phpcs-3.12.1.phar
  -> Found phpcs-3.12.1.phar.asc
  -> Found phpcbf-3.12.1.phar
  -> Found phpcbf-3.12.1.phar.asc
  -> Found licence-3.12.1.txt
==> Validating source files with sha256sums...
    phpcs-3.12.1.phar ... FAILED
    phpcs-3.12.1.phar.asc ... Skipped
    phpcbf-3.12.1.phar ... FAILED
    phpcbf-3.12.1.phar.asc ... Skipped
    licence-3.12.1.txt ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error making: php-codesniffer-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
php-codesniffer - exit status 1

bickman2k commented on 2025-04-06 05:11 (UTC) (edited on 2025-04-06 05:11 (UTC) by bickman2k)

Latest update has some new sha256sums.

phpcs-3.12.1 = 7d714f6ebea0c9a257cbbb1a912a607c68f03f0d3b688f489efbd2eaa72f9261

phpcbf-3.12.1 = 8dcf5337b077812e4266bef5f23c04d2513cb23c95b29478f12faedc096dcec7

Build fine with makepkg after updating the values.

simona commented on 2024-07-25 15:36 (UTC)

solved. thx.

sender commented on 2024-07-25 15:07 (UTC)

@simona try gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32...

simona commented on 2024-07-25 14:50 (UTC)

:: PGP keys need importing:
-> 689DAD778FF08760E046228BA978220305CD5C32, required by: php-codesniffer
-> problem importing keys

sender commented on 2024-07-25 10:59 (UTC)

In case of problems with GPG key try:

gpg --keyserver keys.openpgp.org --recv-keys 689DAD778FF08760E046228BA978220305CD5C32

Thanks @bickman2k, @system7

system7 commented on 2024-07-15 11:13 (UTC)

Ehh... I just saw that, this is abandoned. Then, I change the install method. Ty.