nri
nri copied to clipboard
Support standard golang compiler for WASM plugins
Tracking a feature for supporting the standard golang compiler (big go) for WASM plugins.
Refers to https://github.com/knqyf263/go-plugin/issues/58#issuecomment-2558130178
This change is required which will land in go 1.24.
Looks like https://github.com/knqyf263/go-plugin/pull/71 does the trick.
I merged https://github.com/knqyf263/go-plugin/pull/71. It would be appreciated if you can test it. Once we confirm it works, I'll cut a new version of go-plugin.
I tested it with CRI-O and https://github.com/containerd/nri/pull/148 and it does not seem to be able to load the plugin:
INFO[2025-03-11T14:24:52.57275786+01:00] Found WASM plugin: /opt/nri/plugins/10-wasm file="adaptation/plugin.go:106"
WARN[2025-03-11T14:24:53.989058924+01:00] failed to start pre-installed NRI plugin "wasm": failed to configure plugin: wasm error: unreachable
wasm stack trace:
.runtime.abort(i32) i32
.runtime.fatalpanic(i32) i32
.runtime.gopanic(i32) i32
.runtime.sigpanic(i32) i32
.github.com_containerd_nri_pkg_api._plugin_configure(i32) i32
.plugin_configure(i32,i32) i64 file="adaptation/adaptation.go:396"
What command did you run? I'm not familiar with NRI. I have no idea how I can test it.
I think I figured it out. https://github.com/containerd/nri/pull/148#issuecomment-2715104170
May I ask when we expect v1.0 (or an intermediate tag) to be released? 🙃
intermediate very soon I think