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

Fix and re-enable cppcheck #395

Merged
merged 4 commits into from
Mar 4, 2023
Merged

Conversation

fangerer
Copy link
Contributor

@fangerer fangerer commented Dec 30, 2022

Resolves #188 .

This fixes and re-enables the cppcheck job.
I think the main reason why it broke before is that there was an update of the Ubuntu runner image (ubuntu-latest was updated to ubuntu-22.04) which also includes a newer cppcheck version.

Funnily, I first tried to reproduce the problem on Ubuntu 20.04 with cppcheck 1.90 and did fixes to make that run. Without changing HPy's source code, this did not pass on cppcheck 2.7 (which is available in Ubuntu 22.04).
Long story short: the cppcheck job broke because of cppcheck.

I therefore pinned the versions to Ubuntu 22.04 and cppcheck 2.7-1. This should work for a while (a few years).

@fangerer fangerer changed the title Try to fix cppcheck Fix and re-enable cppcheck Mar 3, 2023
@fangerer fangerer requested a review from mattip March 3, 2023 20:56
@mattip mattip merged commit 6b54518 into hpyproject:master Mar 4, 2023
@mattip
Copy link
Contributor

mattip commented Mar 4, 2023

CI is green, let's give this a try. Thanks @fangerer

@fangerer fangerer deleted the fa/cppcheck branch March 6, 2023 09:23
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.

Re-enable cppcheck
2 participants