Skip to content

fix(ci): respect CARGO_HOME in setup scripts for manylinux builds#242

Merged
DorianZheng merged 1 commit intomainfrom
fix/manylinux-cargo-home
Feb 12, 2026
Merged

fix(ci): respect CARGO_HOME in setup scripts for manylinux builds#242
DorianZheng merged 1 commit intomainfrom
fix/manylinux-cargo-home

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

Fixes the manylinux runtime build failure from #241.

  • Setup scripts hardcoded $HOME/.cargo/env but the manylinux container sets CARGO_HOME=/work/.cargo-manylinux, so rustup creates the env file at $CARGO_HOME/env instead
  • Use ${CARGO_HOME:-$HOME/.cargo} everywhere (backwards-compatible fallback)
  • Cache only registry/ and git/ subdirs, not bin/ — avoids stale rustup proxy issue on second CI run

Test plan

  • CI build-runtime workflow passes (manylinux container)
  • macOS build unaffected (CARGO_HOME unset, falls back to $HOME/.cargo)
  • Node/Python SDK workflows unaffected (don't set CARGO_HOME)

The manylinux container sets CARGO_HOME=/work/.cargo-manylinux for
cargo registry caching, but setup scripts hardcoded $HOME/.cargo/env.
After rustup installs to $CARGO_HOME, sourcing $HOME/.cargo/env fails.

- Use ${CARGO_HOME:-$HOME/.cargo} in all cargo env references
  (setup-common.sh, common.sh) — backwards-compatible fallback
- Cache only registry/ and git/ subdirs, not bin/ — avoids stale
  rustup proxy issue on cache hit (proxies exist but RUSTUP_HOME
  is ephemeral in container, causing false positive in check_rust)
@DorianZheng DorianZheng merged commit 85b8a7c into main Feb 12, 2026
@DorianZheng DorianZheng deleted the fix/manylinux-cargo-home branch February 12, 2026 14:37
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