Skip to content

wasmtime-cli: component run's --invoke uses ItemName for search#13564

Open
pchickey wants to merge 3 commits into
bytecodealliance:mainfrom
pchickey:pch/component_run_invoke_itemname
Open

wasmtime-cli: component run's --invoke uses ItemName for search#13564
pchickey wants to merge 3 commits into
bytecodealliance:mainfrom
pchickey:pch/component_run_invoke_itemname

Conversation

@pchickey
Copy link
Copy Markdown
Contributor

@pchickey pchickey commented Jun 4, 2026

Forwards-compatible improvements to wasmtime run --invoke on components:

  • Now uses wit_parser::ItemName as the parser for the function name in the wave expression (new in wasm-tools 251), look up via ExportLookup, both changes to make this possible introduced by wasmtime: impl ExportLookup for wit_parser::ItemName #13505
  • Previously, when the search for a function in all of the exported instances turned up multiple candidates, failed with a FIXME in the error message. Now, the error message suggests the set of qualified names to select from instead. Example error from integration tests:
Multiple instances contained funcs named `run`, retry with a more specific name: `wasi:cli/run.run@0.2.0`, `some:other/one.run`

@pchickey pchickey marked this pull request as ready for review June 5, 2026 18:34
@pchickey pchickey requested review from a team as code owners June 5, 2026 18:34
@pchickey pchickey requested review from dicej and fitzgen and removed request for a team June 5, 2026 18:34
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