pchickey opened PR #13564 from pchickey:pch/component_run_invoke_itemname to bytecodealliance:main:
Draft because needs CI testing to show how it deals with ambiguity
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
pchickey updated PR #13564.
pchickey updated PR #13564.
pchickey has marked PR #13564 as ready for review.
pchickey requested dicej for a review on PR #13564.
pchickey requested wasmtime-core-reviewers for a review on PR #13564.
pchickey requested fitzgen for a review on PR #13564.
pchickey requested wasmtime-default-reviewers for a review on PR #13564.
pchickey edited PR #13564:
Forwards-compatible improvements to
wasmtime run --invokeon components:
- Now uses
wit_parser::ItemNameas the parser for the function name in the wave expression (new in wasm-tools 251), look up viaExportLookup, both changes to make this possible introduced by #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.
pchickey edited PR #13564:
Forwards-compatible improvements to
wasmtime run --invokeon components:
- Now uses
wit_parser::ItemNameas the parser for the function name in the wave expression (new in wasm-tools 251), look up viaExportLookup, both changes to make this possible introduced by #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`
:thumbs_up: dicej submitted PR review:
Thanks for doing this!
pchickey added PR #13564 wasmtime-cli: component run's --invoke uses ItemName for search to the merge queue.
:check: pchickey merged PR #13564.
pchickey removed PR #13564 wasmtime-cli: component run's --invoke uses ItemName for search from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC