I just have tried to compile with go tool, since support for wasip1 added in go1.21, and got this error:
$ GOOS=wasip1 GOARCH=wasm go build -tags=tinygo.wasm -o wasm/plugin.wasm ./wasm
package gitlab.com/***/test-wasm-plugin/wasm
imports gitlab.com/***/test-wasm-plugin/api
imports github.com/knqyf263/go-plugin/wasm: build constraints exclude all Go files in C:\Users\***\go\pkg\mod\github.com\knqyf263\go-plugin@v0.8.0\wasm
Note that I'm passing -tags=tinygo.wasm, because my plugin code is also protected with this build constraint. However, error message sounds like if go-plugin is not intended for use with official go compiler at all?
I just have tried to compile with go tool, since support for
wasip1
added ingo1.21
, and got this error:Note that I'm passing
-tags=tinygo.wasm
, because my plugin code is also protected with this build constraint. However, error message sounds like ifgo-plugin
is not intended for use with official go compiler at all?