Skip to content

chore(pre-commit): pin node to 24.16.0 in default_language_version - #3

Merged
Jamie-BitFlight merged 1 commit into
mainfrom
chore/pin-prek-node-24-16-0
Aug 31, 2026
Merged

Jamie-BitFlight merged 1 commit into
mainfrom
chore/pin-prek-node-24-16-0

Conversation

@Jamie-BitFlight

Copy link
Copy Markdown
Contributor

Sets node: 24.16.0 under default_language_version in .pre-commit-config.yaml.

Why this version

24.16.0 is the Node that Volta provides at /Users/jamienelson/.volta/bin/node, and is the version proven to work where prek's bundled Node 26.8.1 could not start at all on macOS 12.7.6:

dyld: Symbol not found: (__ZNSt3__122__libcpp_verbose_abortEPKcz)

That libc++ predates the symbol.

Why a pin and not system

Measured with forced-fresh prek env hashes: node: system stops prek downloading a toolchain but does not stop it preferring one already downloaded. Against the poisoned cache, system failed with the identical dyld error while 24.16.0 passed by resolving to Volta.

The broken toolchain has since been deleted, so hooks work today — but that fix lives in one machine's cache and does not travel to a new machine, a cleared cache, or a CI runner. The pin does.

Verification

  • prek resolves the pin to /Users/jamienelson/.volta/tools/image/node/24.16.0/bin/node (v24.16.0), measured with a language: node probe hook.
  • Full prek run --all-files gate run before and after the change; identical result.

Cost

CI reads this file too, so CI runners will install Node 24.16.0 instead of whatever they previously resolved.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QJeBLNA9ybmQvv5REMDkrc

24.16.0 is the Node that Volta provides at /Users/jamienelson/.volta/bin/node,
and is the version proven to work where prek's bundled Node 26.8.1 could not
start at all on macOS 12.7.6:

  dyld: Symbol not found: (__ZNSt3__122__libcpp_verbose_abortEPKcz)

that libc++ predates the symbol.

`node: system` is not sufficient. Measured with forced-fresh prek env hashes:
`system` stops prek DOWNLOADING a toolchain but does not stop it PREFERRING one
already downloaded. Against the poisoned cache, `system` failed with the
identical dyld error while `24.16.0` passed by resolving to Volta. The broken
toolchain has since been deleted, so hooks work today, but that fix lives in one
machine's cache and does not travel to a new machine, a cleared cache, or a CI
runner. The pin does.
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 74f341c7-5fc9-488d-9cc3-ae5fac7e8aba


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T05:23:31.698082Z 65cbe28 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Jamie-BitFlight
Jamie-BitFlight merged commit b801d7b into main Aug 31, 2026
18 checks passed
@Jamie-BitFlight
Jamie-BitFlight deleted the chore/pin-prek-node-24-16-0 branch August 31, 2026 05:26
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