Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy: do not fail scan of packages without Rust code
We want to enable `clippy` in the default scanning profile in a way that it takes an effect for packages that build Rust code. For packages that do not build any Rust code, the plug-in should do nothing rather than failing the whole scan: ``` % csmock -at clippy -r rhel-7-x86_64 -f units-2.01-5.el7_9.src.rpm [...] >>> 2024-05-28 12:24:21 "set -o pipefail; /usr/share/csmock/scripts/convert-clippy.py < /tmp/csmocknsbuwvil/units-2.01-5.el7_9/debug/raw-results/builddir/clippy-output.txt | csgrep --remove-duplicates > /tmp/csmocknsbuwvil/units-2.01-5.el7_9/debug/uni-results/clippy-capture.err" /bin/sh: line 1: /tmp/csmocknsbuwvil/units-2.01-5.el7_9/debug/raw-results/builddir/clippy-output.txt: No such file or directory !!! 2024-05-28 12:24:21 error: post-process hook failed ``` Fixes: commit d216903 Related: https://issues.redhat.com/browse/OSH-30 Closes: csutils#169
- Loading branch information