bytecodealliance/wasmtime-go

v3 build issues

Closed this issue · 5 comments

I don't think we've made it past these yet... this is a PR updating the wasmtime-go dep for OPA to v3, and its build fails with

# github.com/bytecodealliance/wasmtime-go/v3
vendor/github.com/bytecodealliance/wasmtime-go/v3/config.go:3:11: fatal error: 'wasm.h' file not found
 #include <wasm.h>
          ^~~~~~~~

which kind of makes sense, I guess, since the config.go file in vendor/ ends up in a v3/ dir, but build/include/ does not.

Can you try with 3.0.2?

Am I doing this wrong? 😅

open-policy-agent/opa % go get github.com/bytecodealliance/wasmtime-go@v3.0.2
go: github.com/bytecodealliance/wasmtime-go@v3.0.2: invalid version: go.mod has post-v3 module path "github.com/bytecodealliance/wasmtime-go/v3" at revision v3.0.2

I think you want go get github.com/bytecodealliance/wasmtime-go/v3@v3.0.2 but I'll also emphasize the fact that I don't know what I'm going and would very much appreciate guidance on all of this.

🤦 It's been late yesterday. Trying again. Thanks for your help.

It's doing fine now. Thanks again!