Skip to content

Broken module instantiation #92

@mymmrac

Description

@mymmrac

On the latest main branch (bef00f3) only main WASM module gets instantiated and all other modules are only compiled, but not instantiated.

In release version v1.6.1 there is c.Wazero.InstantiateWithConfig(ctx, data.Data, moduleConfig.WithName(data.Name)) which instantiates modules with a specified name, but in the main branch there is no instantiation of other modules, only compilation.

Simplest example to reproduce is https://github.com/mhmd-azeez/extism_link_modules, with v1.6.1 works as expected, but on latest main it fails with the error:

Failed to initialize plugin: instantiating module: module[lib] not instantiated

Metadata

Metadata

Assignees

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