-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to validate output component #1798
Comments
Thanks for the report! I can confirm this locally as well and I think I know what's going on. The problem here has to do with how the component model validates that types are exported, used, and named in components. The root of the issue here is that The outline of the problem is that you have a calculator where the You can fix this for the time being by moving the |
Would you be ok reopening this issue on the wac repository? Given the deprecated status of |
It has been done by estk in bytecodealliance/wac#141. So this one is closed. |
Component has been built successfully but failed the invalidation.
This repo https://github.com/sammyne/wasm-component-broken-compose is made to reproduce the problem.
Requirement
Two components
adder
andcalculator
whose wit files go respectively asReproduction
Setup WIT dependencies
Build the WASM modules
Componentize
rm -rf _out && mkdir _out wasm-tools component new target/wasm32-wasip1/release/adder.wasm -o _out/adder-component.wasm \ --adapt /opt/wasmtime/adapter-modules/wasi_snapshot_preview1.reactor.wasm wasm-tools component new target/wasm32-wasip1/release/calculator.wasm -o _out/calculator-component.wasm \ --adapt /opt/wasmtime/adapter-modules/wasi_snapshot_preview1.reactor.wasm
Compose
Log outputs as follow
INDICATING THE COMPOSED COMPONENT IS INVALID.
The text was updated successfully, but these errors were encountered: