go-plugin
go-plugin copied to clipboard
Can I use go1.21 to compile plugins?
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\[email protected]\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?