Open ardabbour opened 1 year ago
Why don't you use ADDITIONAL_DEBS? Do other versions not setup set themselves as default?
I believe the version used for setup changes depending on the base OS, whatever the default version is gets aliased to the clang-tidy
command, which is then used for the checks. Even if the required version is installed via ADDITIONAL_DEBS
, the clang-tidy
command used later on will trigger the OS's default Clang-Tidy version. Also, installing the default version is a (minor) waste of CI time.
It would be great to use a custom version of Clang-Tidy, especially given that clang-tidy-10, which is the default version of ubuntu:20.04, raises a
clang-diagnostic-error
on severalactionlib
headers. As a workaround, one can do something like this:But it would waste less CI minutes and overall be cleaner if there was a way to choose the Clang-Tidy version of interest, as is done with Clang-Format.