-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASI Module not instantiated error when running example #35
Comments
Thanks for reporting this, I ran into the same issue with #32 and ended up using a higher version of TinyGo to compile the module. https://github.com/madflojo/tarmac/blob/main/testdata/Makefile#L5 Looks like we need to update the examples to use the latest TinyGo as well. |
I have some interesting findings to report. I attempted to bump the tinygo version in the Makefile from
However, when trying to send a request: server
client
bumping tinygo from
|
now that is interesting. What is super interesting is the CI pipeline is setup with latest and the test example uses posts. I'll have to look into this a bit more. |
Was able to confirm this as well, for now, I updated the Makefiles to use TinyGo v0.18.0. But I'll look at the wapc packages and see if I can identify why it's failing. |
oh I see. I think the minimum version of TinyGo is v0.18.0 as it corrected the module import for wasi from wasi_unstable to wasi_snapshot_preview1, which is what everything else uses. tinygo-org/tinygo@303acf5 |
After merging #37 this is fixed for versions 0.18 and greater. Turns out we needed to update to the latest wapc-guest package. |
Running on WSL2 Ubuntu
Docker version 20.10.14, build a224086
The source was cloned and the example build instructions were followed
The tarmac wasm file is generated after running the build command:
Running the tarmac container:
The text was updated successfully, but these errors were encountered: