pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
34 stars 29 forks source link

[Bug]: --exit checkset-from-repo fails #594

Closed ZeroChaos- closed 1 year ago

ZeroChaos- commented 1 year ago

Is there an existing issue for this?

Current Behavior

zero@theprophet gr-sdrplay3 % pkgcheck scan --repo pentoo -C PentooCI --exit PentooCI --net --tasks=32 --jobs=32
pkgcheck scan: error: argument --exit: unknown checkset, check, or keyword: 'PentooCI'

I have created a checkset (subset of GentooCI) called PentooCI and am using it for automated pkgcheck scans of my overlay. Everything has been working great, until I noticed that when a problem is found, pkgcheck still exits 0. I read the manual and it looked like '--exit checkset' would cause it to exit non-zero, which is what I desire.

Unfortunately, while -C PentooCI finds the checkset and runs the checks with no problem at all, --exit PentooCI can't find the checkset, which is defined in my overlay https://github.com/pentoo/pentoo-overlay/blob/master/metadata/pkgcheck.conf

Expected Behavior

--exit PentooCI should find the checkset defined in my overlay just like -C PentooCI does

pkgcheck version

pkgcheck 0.10.24

pkgcore version

zsh: command not found: pkgcore

ZeroChaos- commented 1 year ago

the bug template asks for the output of pkgcore --version but my system has no pkgcore binary. I have sys-apps/pkgcore-0.12.21 installed, so it might be good to change the template to something like emerge -vp --nodeps pkgcore or something

ZeroChaos- commented 1 year ago

tested and confirmed, thanks!