fix(semver): fix produced version number
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
The "+" is not compatible and leads to problems with semver version parsers
This commit is contained in:
parent
c45ad112a2
commit
23ac9bbb61
|
@ -16,7 +16,7 @@ The Vikunja api and frontend are available in two different release flavors.
|
|||
|
||||
## Stable
|
||||
|
||||
Stable releases have a fixed version number like `0.18.2` and are published at irregular intervals whenever a new version is ready.
|
||||
Stable releases have a fixed version number like `0.20.2` and are published at irregular intervals whenever a new version is ready.
|
||||
They receive few bugfixes and security patches.
|
||||
|
||||
We use [Semantic Versioning](#) for these releases.
|
||||
|
@ -28,7 +28,7 @@ As such, they contain the current development code and are more likely to have b
|
|||
There might be multiple new such builds a day.
|
||||
|
||||
Versions contain the last stable version, the number of commits since then and the commit the currently running binary was built from.
|
||||
They look like this: `v0.18.1+269-5cc4927b9e`
|
||||
They look like this: `v0.20.2-75-6049427322`
|
||||
|
||||
The demo instance at [try.vikunja.io](https://try.vikunja.io) automatically updates and always runs the last unstable build.
|
||||
|
||||
|
|
|
@ -94,7 +94,6 @@ func setVersion() {
|
|||
os.Exit(1)
|
||||
}
|
||||
VersionNumber = strings.Trim(string(version), "\n")
|
||||
VersionNumber = strings.Replace(VersionNumber, "-", "+", 1)
|
||||
VersionNumber = strings.Replace(VersionNumber, "-g", "-", 1)
|
||||
|
||||
if os.Getenv("DRONE_TAG") != "" {
|
||||
|
|
Loading…
Reference in New Issue