Skip to content

chore: pin clang-format version and format the tree#3

Merged
ResurrectedTrader merged 1 commit into
mainfrom
clang-format-pin
Jun 17, 2026
Merged

chore: pin clang-format version and format the tree#3
ResurrectedTrader merged 1 commit into
mainfrom
clang-format-pin

Conversation

@ResurrectedTrader

Copy link
Copy Markdown
Owner

CI's format check ran whatever clang-format the windows-latest VS bundles, which drifts from the local VS clang-format - notably it infers pointer alignment (East vs West) differently by version, so check-format passed locally yet failed in CI (e.g. V8Host.h), turning every PR's format job red regardless of what the PR changed.

  • build.ps1: prefer a PATH clang-format pinned to $PINNED_CLANG_FORMAT (20.1.8), falling back to the VS-bundled tool for local dev. The version probe is quiet so a non-clang-format clang-format shim on PATH (e.g. a Chromium depot_tools wrapper) is ignored rather than erroring.
  • ci.yml: pip install clang-format==20.1.8 in the format job so CI uses the pinned version (kept in sync with build.ps1).
  • Reformat the tree under the pinned version: Version.h's nested #define is indented per IndentPPDirectives: BeforeHash.

CI's format check ran whatever clang-format the windows-latest VS bundles,
which drifts from the local VS clang-format - notably it infers pointer
alignment (East vs West) differently by version, so `check-format` passed
locally yet failed in CI (e.g. V8Host.h), turning every PR's format job red
regardless of what the PR changed.

- build.ps1: prefer a PATH clang-format pinned to $PINNED_CLANG_FORMAT
  (20.1.8), falling back to the VS-bundled tool for local dev. The version
  probe is quiet so a non-clang-format `clang-format` shim on PATH (e.g. a
  Chromium depot_tools wrapper) is ignored rather than erroring.
- ci.yml: `pip install clang-format==20.1.8` in the format job so CI uses the
  pinned version (kept in sync with build.ps1).
- Reformat the tree under the pinned version: Version.h's nested #define is
  indented per IndentPPDirectives: BeforeHash.
@ResurrectedTrader ResurrectedTrader merged commit d0c372d into main Jun 17, 2026
5 checks passed
@ResurrectedTrader ResurrectedTrader deleted the clang-format-pin branch June 17, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant