Skip to content

fix: use 'target' (singular) for setup-rust-toolchain action input#1715

Merged
lpcox merged 1 commit intomainfrom
fix/release-wasm-target
Mar 10, 2026
Merged

fix: use 'target' (singular) for setup-rust-toolchain action input#1715
lpcox merged 1 commit intomainfrom
fix/release-wasm-target

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Mar 10, 2026

The actions-rust-lang/setup-rust-toolchain action expects target (singular), not targets (plural). The typo caused wasm32-wasip1 to silently not be installed, failing the WASM guard build in the release workflow with:

error[E0463]: can't find crate for `std`
  = note: the `wasm32-wasip1` target may not be installed

The action logged:

##[warning]Unexpected input(s) 'targets', valid inputs are ['toolchain', 'target', 'components', ...]

Fix: targets:target: in both release.md and release.lock.yml.

The actions-rust-lang/setup-rust-toolchain action expects 'target' not
'targets'. The typo caused wasm32-wasip1 to not be installed, failing
the WASM guard build in the release workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 10, 2026 00:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the release workflow configuration to use the correct input name for installing the WASI Rust target during the Docker/release build.

Changes:

  • Replace targets: wasm32-wasip1 with target: wasm32-wasip1 for actions-rust-lang/setup-rust-toolchain.
  • Apply the same change to both the source workflow (release.md) and the generated locked workflow (release.lock.yml).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/release.md Fixes the Rust toolchain action input key so the WASI target is configured correctly in the workflow source.
.github/workflows/release.lock.yml Mirrors the same fix in the pinned/locked workflow used for execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lpcox lpcox merged commit 8a09b8d into main Mar 10, 2026
7 checks passed
@lpcox lpcox deleted the fix/release-wasm-target branch March 10, 2026 00:46
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.

2 participants