bytecodealliance / bytecodealliance/endive

Duplicate imports break annotation code generation

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
296
Forks
21
Avg merge
2d 12h
Merged PRs (30d)
29

Description

In [this example](https://github.com/fabiobrz/quarkus-cel-k8s-validator), the Go compiled module has 2 imports `fd_write`.
This is legal Wasm and the engine works great but the `WasmModuleInterface` breaks as it is emitting two colliding functions in the same class.

Since this is allowed, we need a way to gracefully handle this case.

As a viable workaround, is possible, today to use wasm-opt:
```
wasm-opt --duplicate-function-elimination
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.