mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
cli: remove stray whitespace when loading the consul version from the VERSION file (#16467)
Fixes a regression from #15631 in the output of `consul version` from: Consul v1.16.0-dev +ent Revision 56b86acbe5+CHANGES to Consul v1.16.0-dev+ent Revision 56b86acbe5+CHANGES
This commit is contained in:
parent
6db445ba29
commit
ec593c2b9b
@ -20,7 +20,7 @@ var (
|
|||||||
//go:embed VERSION
|
//go:embed VERSION
|
||||||
fullVersion string
|
fullVersion string
|
||||||
|
|
||||||
Version, VersionPrerelease, _ = strings.Cut(fullVersion, "-")
|
Version, VersionPrerelease, _ = strings.Cut(strings.TrimSpace(fullVersion), "-")
|
||||||
|
|
||||||
// https://semver.org/#spec-item-10
|
// https://semver.org/#spec-item-10
|
||||||
VersionMetadata = ""
|
VersionMetadata = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user