Grafana versioning: Remove pre suffix from Grafana version (#73357)

* Remove pre suffix from version

* Fix tests
This commit is contained in:
Dimitris Sotirakis authored and GitHub committed 2023-08-17 11:08:15 +03:00
1 parent 24978eff61
commit 0aba319ea0
2 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ const (
)
const (
hashedGrafanaVersion = "9.2.0-12345pre"
hashedGrafanaVersion = "9.2.0-12345"
versionedBranch = "v9.2.x"
)
-3
View File
@@ -81,9 +81,6 @@ func GenerateGrafanaVersion(buildID, grafanaDir string) (string, error) {
buildID = shortenBuildID(buildID)
verComponents := strings.Split(version, "-")
version = verComponents[0]
if len(verComponents) > 1 {
buildID = fmt.Sprintf("%s%s", buildID, verComponents[1])
}
version = fmt.Sprintf("%s-%s", version, buildID)
}