[Archery] C++ linting with --clang-format or archery lint --clang-tidy fails on M1
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
It seems there is some cmake target issue for `clang-format` and `clang-tidy` options when running `archery lint` on M1:
```java
...
-- Build files have been written to: /private/var/folders/gw/q7wqd4tx18n_9t4kbkd0bj1m0000gn/T/arrow-lint-g7drna9_/cpp-buildninja: error: unknown target 'check-format'
```
**Reporter**: [Alenka Frim](https://issues.apache.org/jira/browse/ARROW-17874) / @AlenkaF
**Note**: *This issue was originally created as [ARROW-17874](https://issues.apache.org/jira/browse/ARROW-17874). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start with the linked gist and reproduce `archery lint --clang-format` and `archery lint --clang-tidy` on an M1 system. Inspect the generated CMake build targets around the reported `check-format` error; done means both linting options complete successfully on M1 without an unknown-target failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100