Skip to content

WAB plug and compose fails? #148

Description

@Bab64

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...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions