Skip to content
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

Separate engine modules / Fix wazero engine for TinyGo 0.35.0 #62

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

pkedy
Copy link
Member

@pkedy pkedy commented Jan 21, 2025

  • Moving engine implementations to separate modules.
  • Disabling tests for wasmer and wasmtime because they are not being regularly updated and now are incompatible with TinyGo 0.35.0
  • Adding _initialize as a start function to support TinyGo 0.35.0 and the -buildmode=c-shared flag.

@pkedy pkedy force-pushed the modules branch 4 times, most recently from 72918df to 1639549 Compare January 21, 2025 06:06
Handling `sys.ExitError` returned by `_start` in wazero engine.
@pkedy
Copy link
Member Author

pkedy commented Jan 21, 2025

@madflojo You might want to check out this PR.

t.Errorf("Unexpected instance, have %v, expected %v", have, expected)
}
}
// import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than commenting, maybe we should just delete this? Can always just grab from a previous tag if we ever need it again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may very well do that in a future PR. I want to learn more about the state of wasmer-go and wasmtime-go.

@@ -0,0 +1,14 @@
module github.com/wapc/wapc-go/engines/wazero
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One annoying thing I've found about multi module repos is that things like go tests and Golangci-lint don't automatically pickup all of the modules.

They require some magic tricks to properly catch things: https://github.com/tarmac-project/hord/blob/main/.github/workflows/lint.yml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprising. Thanks for the heads up! Will investigate in a future PR.

@madflojo
Copy link
Contributor

@pkedy thanks for addressing this and keeping this project up and alive!

@pkedy pkedy merged commit 6bf9cae into master Jan 21, 2025
2 checks passed
@pkedy pkedy deleted the modules branch January 21, 2025 12:33
@madflojo
Copy link
Contributor

madflojo commented Feb 2, 2025

@pkedy, can we cut a release of the engine module/s with this change? Without a specific release for those modules, the dependencies look like this:

	github.com/wapc/wapc-go/engines/wazero v0.0.0-20250121123328-6bf9cae9d28d

In case you've not had to create releases for sub-modules it's as simple as creating a tag with the module path, some examples: https://github.com/tarmac-project/hord/tags

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

Successfully merging this pull request may close these issues.

2 participants