Skip to content

Can Spin support new WASI from golang 1.21.0? #1688

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

Closed
rts-gordon opened this issue Aug 12, 2023 · 3 comments
Closed

Can Spin support new WASI from golang 1.21.0? #1688

rts-gordon opened this issue Aug 12, 2023 · 3 comments

Comments

@rts-gordon
Copy link

Hi there,

Golang has released new version 1.21.0 that support WASI preview 1, it is more powerful than Tinygo, you know Tinygo can't compile many go libraries. So is it possible that Spint support new WASI from golang 1.21.0? Thank you.

@itowlson
Copy link
Collaborator

@adamreese any idea about this? It looks like the wasmimport directive might serve for Spin host APIs but I think we noted a limitation with exporting trigger entry points - am I remembering correctly?

@michelleN michelleN moved this to 🆕 Triage Needed in Spin Triage Aug 14, 2023
@adamreese
Copy link
Contributor

There was a blocker but I don't remember either. I haven't done any testing with the new go wasi support recently. Now that go has released support it's worth looking into.

@adamreese
Copy link
Contributor

I did some investigation and @itowlson was correct. Go version 1.21.1 adds the go:wasmimport but go:wasmexport isn't implemented yet. golang/go#42372

@github-project-automation github-project-automation bot moved this from 🆕 Triage Needed to ✅ Done in Spin Triage Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants