-
Notifications
You must be signed in to change notification settings - Fork 296
go/wasm: Update to Tinygo 0.35.0 #4002
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
Conversation
213a33d
to
1d993ac
Compare
I am wondering about the UX: does it give a specific error message if trying to run an old version of a gadget with this new version of |
$ burak/wasm/tinygo.0.35.0 ✓ ➭ go run --exec "sudo -E" ./cmd/ig run trace_exec:v0.37.0
RUNTIME.CONTAINERNAME COMM PID TID ARGS ERROR
reverent_elbakyan sh 13932 13932 /bin/sh
reverent_elbakyan date 13956 13956 /bin/date foo bar |
So, for now, tinygo gives us compatibility with both the old and new way of exporting function. |
There is no compatibility AFAIK. If you try to compile old gadgets with So the compiliation might fail or not work. But already compiled gadgets with |
What do you mean by 1.24 and 1.25?
|
Sorry, my brain was at Go 1.24 :/
I think no compilation error, there might be an error when the gadget runs, that it can't find the exported functions that it expects |
So, an old gadget could not be used with a newer version of ig using a newer version of tinygo? |
That would be nice - But we aren't guaranteeing it today even in other PRs. They break left and right
Every gadget this is already compiled will work. If you try to compile a gadget that didn't receive the changes in this PR, now with the tinygo update from this PR you get the issues. Maybe the following table helps to paint a better picture.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm aware of the IG vs gadget compatibility issues, I'll create an issue soon to go deeper on that, but it doesn't block this issue. Thanks Burak for handling this!
1d993ac
to
48bb1fe
Compare
Signed-off-by: Burak Ok <burakok@microsoft.com>
48bb1fe
to
5d8e56e
Compare
go/wasm: Update to Tinygo 0.35.0
This uses the newest info from tetratelabs/wazero#2368