diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/supervisor.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/supervisor.go b/plugin/supervisor.go index 1e1005f53..f6264f47c 100644 --- a/plugin/supervisor.go +++ b/plugin/supervisor.go @@ -7,6 +7,7 @@ import ( "fmt" "os/exec" "path/filepath" + "runtime" "strings" "time" @@ -39,7 +40,10 @@ func newSupervisor(pluginInfo *model.BundleInfo, parentLogger *mlog.Logger, apiI }, } - executable := filepath.Clean(filepath.Join(".", pluginInfo.Manifest.Backend.Executable)) + executable := filepath.Clean(filepath.Join( + ".", + pluginInfo.Manifest.GetExecutableForRuntime(runtime.GOOS, runtime.GOARCH), + )) if strings.HasPrefix(executable, "..") { return nil, fmt.Errorf("invalid backend executable") } |