fix(build): normalize comma-separated TAGS to prevent build failure

This commit is contained in:
kolaente
2026-02-05 23:57:28 +01:00
parent b741c2d891
commit ae3dd6923b

View File

@@ -215,7 +215,7 @@ func initVars() {
// This prevents SIGFPE crashes when running under systemd without HOME set,
// caused by glibc's getpwuid_r() failing in certain environments.
// See: https://github.com/go-vikunja/vikunja/issues/2170
Tags = "osusergo " + os.Getenv("TAGS")
Tags = "osusergo " + strings.ReplaceAll(os.Getenv("TAGS"), ",", " ")
setVersion()
setBinLocation()
setPkgVersion()