fix(build): add osusergo tag to plugin build

Applies the same osusergo build tag fix from a1d5b634b to the plugin
build to prevent SIGFPE crashes under systemd.
This commit is contained in:
kolaente 2026-02-09 16:18:49 +01:00
parent ed5dfa1ad4
commit c2a132d56d
1 changed files with 1 additions and 1 deletions

View File

@ -1772,6 +1772,6 @@ func (Plugins) Build(pathToSourceFiles string) error {
} }
out := filepath.Join(RootPath, "plugins", filepath.Base(pathToSourceFiles)+".so") out := filepath.Join(RootPath, "plugins", filepath.Base(pathToSourceFiles)+".so")
runAndStreamOutput("go", "build", "-buildmode=plugin", "-o", out, pathToSourceFiles) runAndStreamOutput("go", "build", "-buildmode=plugin", "-tags", Tags, "-o", out, pathToSourceFiles)
return nil return nil
} }