Skip to content

fix(docpars): install with cargo on Apple Silicon - #287

Open
jorgeluisd wants to merge 1 commit into
CodelyTV:mainfrom
jorgeluisd:fix/docpars-apple-silicon
Open

jorgeluisd wants to merge 1 commit into
CodelyTV:mainfrom
jorgeluisd:fix/docpars-apple-silicon

Conversation

@jorgeluisd

@jorgeluisd jorgeluisd commented Nov 9, 2026 •

Copy link
Copy Markdown

Closes #288

On Apple Silicon, brew install denisidoro/tools/docpars succeeds but installs an x86_64 binary, so every docs::parse call fails with Bad CPU type in executable when Rosetta isn't installed. The recipe now installs docpars with cargo on arm64 macOS. Intel macOS and Linux keep the current flow.

Verification

  • bash -n and shellcheck -s bash -S warning pass on the recipe.
  • Simulated dot package add docpars with stubbed brew, cargo and uname: arm64 macOS uses cargo; Intel macOS and Linux behave as before.
  • cargo install docpars builds a working arm64 binary on Apple Silicon without Rosetta.

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.

docpars fails on Apple Silicon without Rosetta (Bad CPU type in executable)

1 participant