Does something changed in the vendored ripgrep build?

Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 6 comments · opened May 7, 2025 · closed Aug 22, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator) responded on this thread — see the highlighted reply below.

I'm building a claude-code Formula on my personal Homebrew tap and since a few version (0.2.101 or 0.2.102) i'm getting this error:

   Error: Failed changing dylib ID of /opt/homebrew/Cellar/claude-code/0.2.103/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node
    from /Users/dancol/code/claude-cli-queue/vendor/ripgrep-src/target/aarch64-apple-darwin/release/deps/libripgrep.dylib
      to /opt/homebrew/opt/claude-code/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/libripgrep.dylib

Does something changed in the build process on your side?

View original on GitHub ↗

6 Comments

wolffiex collaborator · 1 year ago

Nothing changed that I know of here, but it is odd that is showing one of our users paths here.

nikaro · 1 year ago

The next error message talks about relinking the binary with "with -headerpad or -headerpad_max_install_names". TBH i don't know if this is something to do on your pre-compiled ripgrep binary or during the Homebrew build steps. I may ask for some help from Homebrew community.

Error: Failed to fix install linkage
Updated load commands do not fit in the header of /opt/homebrew/Cellar/claude-code/0.2.122/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node. /opt/homebrew/Cellar/claude-code/0.2.122/libexec/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/ripgrep.node needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
oschrenk · 1 year ago

Same issue

==> npm install -g --prefix /opt/homebrew/Cellar/claude-code/1.0.24 @anthropic-ai/claude-code@1.0.24
Error: Failed changing dylib ID of /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node
  from /Users/dancol/code/claude-cli-queue/vendor/ripgrep-src/target/x86_64-apple-darwin/release/deps/libripgrep.dylib
    to /opt/homebrew/opt/claude-code/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/libripgrep.dylib
Error: Failed to fix install linkage
Updated load commands do not fit in the header of /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node. /opt/homebrew/Cellar/claude-code/1.0.24/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
The formula built, but you may encounter issues using it or linking other
formulae against it.
ant-kurt collaborator · 1 year ago

We shipped some changes for this recently. Next steps:

nikaro · 1 year ago

I can confirm that it is solved now. Thanks.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.