Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 19, 2024

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

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
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
36 checks passed
@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