-
Notifications
You must be signed in to change notification settings - Fork 32
WAB plug and compose fails? #148
Copy link
Copy link
Open
Description
Hi,
I've tested the 'hello' example with my installation and it works... Thanks for building WAC! However, I'm not able to run the following example:
package bab:compound; // Compound.wit
world compound-world {
export compound-interface: interface { // Inline def. of interface...
compound-function: func();
}
}
/**/
package bab:composite; // 'Composite.wit'
world composite-world { // a.k.a. "socket" component
import compound-interface: interface { // Inline def. of interface...
compound-function: func();
}
}
/ Transform wit into wasm: /
wasm-tools component wit --wasm -o ./composition/Compound.wasm ./composition/Compound.wit
wasm-tools component wit --wasm -o ./composition/Composite.wasm ./composition/Composite.wit
/ Compose with 'plug': /
wac plug --plug ./composition/Compound.wasm ./composition/Composite.wasm -o ./composition/Composition.wasm
/* Error message is: */
error: the socket component had no matching imports for the plugs that were provided
I've feeling that the error message is "wrong" because the "compound-interface" matches? Thanks for any help... Regards.
PS: wac compose does NOT work as well (open an other issue on that...)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels