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

Bring re2 tinygo wasm binaries into this repo #19

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Nov 28, 2024

I am finally updating go-re2 to the latest version of Google re2 and because re2 has changed its build system significantly, notably depending on absl, it is not possible to build without threads anymore which breaks TinyGo / Envoy compatibility. I have removed building of the artifacts from the go-re2 project

https://github.com/wasilibs/go-re2?tab=readme-ov-file#tinygo

I have still left in a few tinygo.wasm build tags to still allow the library to work if the Wasm files are provided as cgo flags so I have done that here to prevent coraza-proxy-wasm from breaking.

It also raises the go version to 1.21 which is the minimum of the new go-re2 commit being used and probably matches coraza. I notice the change in #18 raising to 1.22 but I went minimally for this PR whose only goal is to bring in the Wasm binaries.

@anuraaga
Copy link
Contributor Author

@jcchavezs @M4tteoP I have cut a new release of go-re2 that requires this change, until it you won't be able to use the latest version of go-re2 for coraza-proxy-wasm, which may not be a big deal anyways.

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.

1 participant