pkgcheck icon indicating copy to clipboard operation
pkgcheck copied to clipboard

MatchingChksums doesn't fire on same package?

Open thesamesam opened this issue 2 years ago • 2 comments

I don't seem to get a MatchingChksums result when I expected one:

  1. git checkout 659cab9931ee5424de3e993d656d9d3b9cb6dca3~1
  2. cd sec-keys/openpgp-keys-wget && cp openpgp-keys-wget-20220407.ebuild openpgp-keys-wget-20230313.ebuild
  3. pkgdev manifest
  4. pkgcheck scan

with:

$ cat Manifest
DIST openpgp-keys-wget-20220407.asc 72073 BLAKE2B e35ed2340caa7a3221cb7abd71a827aeedba4422108dc18e027a14402bed11015e5ff0a54776d6ce5ca913c93279e9b109b7bc8db9c448ad2124552a5f13c4b2 SHA512 9bde0be2d57e9fbb8e3174063386a277d17439e49834bcb4379a572a9c86fcca9cf8a8dd40ef50197281473469f51289b610dc99228624e439373b65a93e0d2f
DIST openpgp-keys-wget-20230313.asc 72073 BLAKE2B e35ed2340caa7a3221cb7abd71a827aeedba4422108dc18e027a14402bed11015e5ff0a54776d6ce5ca913c93279e9b109b7bc8db9c448ad2124552a5f13c4b2 SHA512 9bde0be2d57e9fbb8e3174063386a277d17439e49834bcb4379a572a9c86fcca9cf8a8dd40ef50197281473469f51289b610dc99228624e439373b65a93e0d2f

thesamesam avatar Mar 14 '23 00:03 thesamesam

MatchingChksums is returned from ManifestCollisionCheck check, which is of repo scope, meaning it is ran only when in root of repo. This isn't ideal, but the current behavior (run only checks whose scope is at least as the cwd scope).

arthurzam avatar Mar 18 '23 14:03 arthurzam

For the record, it's done like that simply because I couldn't figure out how to make it run at the highest scope available.

mgorny avatar Mar 18 '23 17:03 mgorny