We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a77bd commit f8cfbedCopy full SHA for f8cfbed
build.go
@@ -19,8 +19,6 @@ import (
19
"strconv"
20
"strings"
21
"time"
22
-
23
- "github.com/blang/semver"
24
)
25
26
var (
@@ -116,12 +114,11 @@ func readVersionFromPackageJson() {
116
114
linuxPackageIteration = ""
117
115
118
// handle pre version stuff (deb / rpm does not support semver)
119
- versionInfo, _ := semver.Make(version)
+ parts := strings.Split(version, "-")
120
121
- if len(versionInfo.Pre) > 0 {
122
- linuxPackageIteration = versionInfo.Pre[0].VersionStr
123
- versionInfo.Pre = make([]semver.PRVersion, 0)
124
- linuxPackageVersion = versionInfo.String()
+ if len(parts) > 1 {
+ linuxPackageVersion = parts[0]
+ linuxPackageIteration = parts[1]
125
}
126
127
0 commit comments