Skip to content

add Rust toolchain setup to Release workflow#27

Merged
johncarmack1984 merged 1 commit into
mainfrom
john/release-rust-setup
May 6, 2026
Merged

add Rust toolchain setup to Release workflow#27
johncarmack1984 merged 1 commit into
mainfrom
john/release-rust-setup

Conversation

@johncarmack1984

Copy link
Copy Markdown

Summary

Mirror the dtolnay/rust-toolchain setup step from .github/workflows/main.yml into .github/workflows/release.yml.

Why

#26 pinned the Rust toolchain via rust-toolchain.toml and added a setup step to the CI workflow. The Release workflow's "Sync formatting if necessary" step also runs pnpm format -> dprint fmt -> shells to rustfmt, but had no setup step. The post-#26 Release run on main hit:

```
error: component download failed for cargo-x86_64-unknown-linux-gnu:
could not rename 'downloaded' file from '...partial' to '...':
No such file or directory (os error 2)
```

Cause: dprint runs rustfmt on multiple files in parallel. With the toolchain not yet installed, each parallel rustfmt invocation triggered its own concurrent rustup auto-install, racing on ~/.rustup/downloads/*.partial rename. Pre-installing the toolchain in a serial setup step removes the race.

Test plan

  • pnpm lint clean locally
  • On merge, the next Release run on changeset-release/main succeeds (this fix only takes effect on the next push to main, since this PR itself doesn't trigger a release)

@johncarmack1984 johncarmack1984 merged commit 8c705f1 into main May 6, 2026
1 check passed
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