Skip to content

clippy: do not fail the scan if clippy fails to install#174

Merged
kdudka merged 2 commits intocsutils:mainfrom
kdudka:clippy
Jun 19, 2024
Merged

clippy: do not fail the scan if clippy fails to install#174
kdudka merged 2 commits intocsutils:mainfrom
kdudka:clippy

Conversation

@kdudka
Copy link
Member

@kdudka kdudka commented Jun 19, 2024

If the clippy package is not available in the build repos, a warning
is emitted and clippy is not recorded as an enabled tool in the scan
properties. But the scan continues without clippy in this case.

The approach is similar to what --gcc-analyze does. This is needed
because clippy is not available for each mock config and we do not
want to configure the set of enabled tools separately for each mock
config.

Related: https://issues.redhat.com/browse/OSH-30

kdudka added 2 commits June 19, 2024 08:20
The name was confusing because, when the hook is triggered, clippy has
already been installed by dnf/rpm.
If the `clippy` package is not available in the build repos, a warning
is emitted and `clippy` is not recorded as an enabled tool in the scan
properties.  But the scan continues without `clippy` in this case.

The approach is similar to what `--gcc-analyze` does.  This is needed
because `clippy` is not available for each mock config and we do not
want to configure the set of enabled tools separately for each mock
config.

Related: https://issues.redhat.com/browse/OSH-30
Closes: csutils#174
@kdudka kdudka requested a review from lzaoral June 19, 2024 07:24
@kdudka kdudka self-assigned this Jun 19, 2024
@kdudka
Copy link
Member Author

kdudka commented Jun 19, 2024

@lzaoral Thanks for review!

@kdudka kdudka closed this in 69b366f Jun 19, 2024
@kdudka kdudka merged commit 69b366f into csutils:main Jun 19, 2024
@kdudka kdudka deleted the clippy branch June 19, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants