mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-02 05:22:46 +07:00
The previous commit pinned CI and the pre-commit hook to a fixed clang-format 23.1.0, but the maintainer develops on macOS against whatever version `brew` currently installs, which changes over time as Homebrew updates the formula. style-check now runs on macos-latest and installs clang-format via `brew install`, so it tracks the same moving target the maintainer's Mac does. The pre-commit hook switches from pre-commit's own pinned mirror to a local hook that shells out to the system clang-format, so a local commit and CI both go through the same Homebrew-installed binary rather than two independently versioned copies. Trade-off: this reintroduces the non-determinism a fixed pin avoids -- a commit's style-check result can now change over time as Homebrew updates the formula -- but that mirrors how the maintainer already develops, which is the point. Also install coreutils in CI: the style_check Makefile target needs grealpath's --relative-to, which the macOS-native realpath lacks.