bytecodealliance / bytecodealliance/endive
Duplicate imports break annotation code generation
Open
- 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
Assessment
This issue has not been assessed yet.