mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-03 16:07:43 +00:00
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:
@@ -242,5 +242,8 @@ func (g git) goPkgVersion() (string, error) {
|
||||
}
|
||||
version = fmt.Sprintf("%s-%s", lastSemver, dateCommit)
|
||||
}
|
||||
|
||||
version = strings.TrimSpace(version)
|
||||
|
||||
return version, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user