You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With my-resource commented out I would expect to get single component with my-resource import and with it uncommented I'd expect single component with only wasi import. However I'm receiving following error:
> wasm-tools compose -c config.yml target\wasm32-wasi\debug\main.wasm -o output.wasm
[2024-03-13T02:49:48Z WARN ] instance `example:service/my-resource@0.1.0` will be imported because a dependency named `example:service/my-resource@0.1.0` could not be found
error: component `target\wasm32-wasi\debug\bimpl.wasm` is not compatible with import `example:service/b-interface@0.1.0` of component `target\wasm32-wasi\debug\main.wasm`
The same config worked fine before implementing resources.
The text was updated successfully, but these errors were encountered:
Repository: https://github.com/andrzejressel/wasm-tools-compose-resources-bug-report
I have WIT structure that looks like this:
b
is also implementing resource type that is used in the whole tree. Repository after compilingis generating
main.wasm
,aimpl.wasm
andbimpl.wasm
. Everything works fine when I combine them manually:Output:
However in my real project the graph will be more complicated so I've decided to try using config file. For this example it looks like this
With
my-resource
commented out I would expect to get single component withmy-resource
import and with it uncommented I'd expect single component with onlywasi
import. However I'm receiving following error:The same config worked fine before implementing resources.
The text was updated successfully, but these errors were encountered: