pkglib/git: remove trailing spaces of GOPKGVERSION (#4164)

this makes `--dry-run` inconvenient as it includes a newline

Signed-off-by: Christoph Ostarek <christoph@zededa.com>
This commit is contained in:
christoph-zededa
2025-08-29 13:27:40 +02:00
committed by GitHub
parent 41cafa3cc3
commit 179f74ac24

View File

@@ -242,5 +242,8 @@ func (g git) goPkgVersion() (string, error) {
}
version = fmt.Sprintf("%s-%s", lastSemver, dateCommit)
}
version = strings.TrimSpace(version)
return version, nil
}