No rule for "make format"
Dear Corryvreckan developers,
I encountered a problem when trying to format Corryvreckan code after some changes have been made. In order to pass the CI pipeline I tried running:
make format
, which only led to the error:
make: *** No rule to make target 'format'. Stop.
.
Checking my clang version:
clang-format --version
clang-format version 13.0.0
.
I noticed in the CMakeLists.txt
that only version 12 is exactly required. However, running clang-format
manually on the changed files works and results in a passed pipeline. The same error is connected to installing the git-hooks. The hooks will install fine, but I get the following error upon code check:
which: no clang-format-12 in (/usr/lib/git-core:/home/user/.../root6-6-24-06-17/bin:/home/user/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/user/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) Error: clang-format version 12 is required (exactly), cannot check format!
It would be nice if there was a fix to that issue, so that the target format
can be built on every supported system like suggested in the documentation.
If there are further questions I am happy to help out. Cheers, Pascal Becht (from the ALICE ITS3 team)