Skip to content

fix(release): restore macOS 27 binary compatibility - #108

Merged
redox merged 2 commits into
mainfrom
fc/fix-macos-27-bun
Sep 16, 2026
Merged

redox merged 2 commits into
mainfrom
fc/fix-macos-27-bun

Conversation

@francoischalifour

@francoischalifour francoischalifour commented Sep 16, 2026

Copy link
Copy Markdown
Member

Why

The macOS native CLI binaries in v1.6.1 can fail before the CLI starts on macOS 27. The release was built with Bun 1.4.0, whose bun build --compile output for Darwin ARM64 had an invalid ad-hoc Mach-O signature.

Earlier macOS releases may still launch the binary despite the malformed signature, which hid the defect during existing smoke tests. macOS 27 enforces the signature and terminates the executable at launch.

This is an upstream Bun defect, documented in oven-sh/bun#39764 and partially fixed upstream in oven-sh/bun#39837. Bun 1.4.2 produces a valid ARM64 signature but still produces an invalid x64 signature, so release correctness cannot depend on Bun's embedded signature.

What changed

  • Upgrade the pinned release toolchain from Bun 1.4.0 to Bun 1.4.2.

  • Upgrade @types/bun and the lockfile to match the runtime toolchain.

  • Replace Bun's embedded signature on both Darwin release targets with a deterministic ad-hoc signature:

    codesign --force --sign - --timestamp=none <release-binary>
  • Verify every Darwin artifact with codesign --verify --strict before invoking --version and --help.

  • Add unit coverage proving signing and signature verification apply only to Darwin targets.

The npm runtime compatibility floor remains bun >=1.1.0. The issue affects standalone compiled release binaries, not the JavaScript bundle run through a user-installed Bun runtime.

Verification

  • Release tests: 24 passed.
  • Typecheck, type-aware lint, formatting, Knip, and production Knip passed.
  • Native ARM64 build, strict signature verification, --version, and --help passed.
  • Cross-compiled x64 build, strict signature verification, --version, and --help passed under Rosetta.

Bun 1.4.0 emitted invalid ad-hoc Mach-O signatures that macOS 27 rejects at launch. Build release artifacts with Bun 1.4.2, keep the matching type metadata in sync, and verify Darwin signatures during release smoke tests so malformed binaries cannot be published again.

@albert20260301 albert20260301 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required: the new Darwin signature check exposes that the proposed Bun 1.4.2 pin still emits an invalid x64 artifact. Compile binary (altertable-darwin-x64) fails at codesign --verify --strict with invalid signature (code or signature have been modified).

Please update the release toolchain/remediation so both Darwin targets pass strict verification, then rerun CI. As written, this cannot restore macOS compatibility for the x64 binary.

Bun 1.4.2 still emits an invalid ad-hoc signature for the x64 target. Replace Bun's signature for both Darwin artifacts with the system codesign tool before strict verification so the ARM64 and Intel release paths share the same valid signing boundary.
@redox
redox merged commit de05fd0 into main Sep 16, 2026
13 checks passed
@redox
redox deleted the fc/fix-macos-27-bun branch September 16, 2026 21:13
redox pushed a commit that referenced this pull request Sep 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.6.2](v1.6.1...v1.6.2)
(2026-09-16)


### Bug Fixes

* make authentication remediation safe for headless use
([#103](#103))
([f3336a0](f3336a0))
* **release:** restore macOS 27 binary compatibility
([#108](#108))
([de05fd0](de05fd0))
* return unhealthy exit statuses for diagnostic commands
([#104](#104))
([96a8474](96a8474))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@redox

redox commented Sep 16, 2026

Copy link
Copy Markdown
Member

@francoischalifour nice, I confirm it works now

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.

3 participants