Latest Results
fix(bindings): fall back to a safe cache root on Unix (#12500)
<!-- Note: CI script will automatically rebase your PR so please do not
rebase unless required -->
<!-- Thanks for submitting a pull request! Please provide enough
information so that others can review your pull request. -->
**Description:**
<!-- Explain the **motivation** for making this change. What existing
problem does the pull request solve? -->
Native addon loading fails on Unix when the user cache has a shared
ancestor, such as `HOME=/vercel`. Temporary mode uses that same root, so
`SWC_NATIVE_BINDING_CACHE=0` also fails.
Retry cache failures in the canonicalized system temporary directory on
Unix, using the same execution, ownership, permission, and
private-namespace checks. Preserve payload integrity errors and avoid
fallback work when the primary cache succeeds. Windows retains its
existing profile-cache fallback.
Add isolated cache fixtures and real Node carrier coverage for fallback
loading, temporary cleanup, unsafe roots, symlinked temporary paths, and
integrity failures. Include the required `swc_core: patch` changeset.
**BREAKING CHANGE:**
None.
**Related issue (if exists):**
Closes #12498
## Validation
The following checks passed for reviewed source commit `4e2eb2f98b`:
- `cargo test -p swc_native_addon` on macOS and in a Linux container,
including rejection of a `noexec` fallback.
- `cargo test -p binding_native_addon` and `cargo test -p
binding_native_addon --test carrier`, including actual Node loading.
- `python3 crates/swc_native_addon/scripts/msrv.py` with Rust 1.85.
- `cargo fmt --all` and `cargo clippy --all --all-targets -- -D
warnings`.
- `pnpm build:dev && pnpm test` in `packages/core`: 119 tests passed, 3
skipped.
macOS Rust tests used a canonical `TMPDIR` to avoid the existing `/var`
alias in cache fixtures. The three existing filesystem-specific tests
remained ignored. Windows native execution was not available. The later
changeset commit adds release metadata only; local code validation was
not rerun during publication. CI results are pending.
## AI assistance and human review
AI was used to prepare these changes. Human-reviewed by @kdy1.
- Harness: Codex desktop app Latest Branches
0%
fix/codegen-tsx-generic-arrow-comma -2%
fix/codegen-typed-arrow-parameters 0%
fix/parser-namespace-await-identifier © 2026 CodSpeed Technology