setup-cpp icon indicating copy to clipboard operation
setup-cpp copied to clipboard

Specifying version of cppcheck fails on MacOS and Linux

Open lefticus opened this issue 3 years ago • 3 comments

Attempting to set cppcheck: 2.6 on MacOS or Linux fails to install a package.

However, it succeeds with no problem on Windows.

https://github.com/lefticus/json2cpp/pull/7

(invalid syntax for brew?) MacOS failure: https://github.com/lefticus/json2cpp/runs/5147554453?check_suite_focus=true#step:6:76

(ubuntu 20.04 package manager doesn't know cppcheck version 2.6) Ubuntu Failure: https://github.com/lefticus/json2cpp/runs/5147554297?check_suite_focus=true#step:6:111

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

lefticus avatar Feb 10 '22 21:02 lefticus

We can fix this. Allowing any versions require adding a GitHub-based setup for cppcheck similar to how I do it for llvm and ninja

https://github.com/danmar/cppcheck/releases/

aminya avatar Feb 10 '22 22:02 aminya

Oh, they do not provide binaries for Linux and Macos on Github.

aminya avatar Feb 10 '22 22:02 aminya

As a follow-up - currently cppcheck-2.7 is being installed for ubuntu-latest - is there still no way to provide explicit (more modern) version? Thanks!

yapolyak avatar Dec 12 '23 11:12 yapolyak