WIP: fix(semver): fix produced version number #1472
|
@ -16,7 +16,7 @@ The Vikunja api and frontend are available in two different release flavors.
|
||||||
|
|
||||||
## Stable
|
## 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.
|
They receive few bugfixes and security patches.
|
||||||
|
|
||||||
We use [Semantic Versioning](#) for these releases.
|
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.
|
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.
|
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.
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
VersionNumber = strings.Trim(string(version), "\n")
|
VersionNumber = strings.Trim(string(version), "\n")
|
||||||
VersionNumber = strings.Replace(VersionNumber, "-", "+", 1)
|
|
||||||
VersionNumber = strings.Replace(VersionNumber, "-g", "-", 1)
|
VersionNumber = strings.Replace(VersionNumber, "-g", "-", 1)
|
||||||
konrad
commented
Can you remove this line? Can you remove this line?
|
|||||||
|
|
||||||
if os.Getenv("DRONE_TAG") != "" {
|
if os.Getenv("DRONE_TAG") != "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user
@konrad How could we render the current version dynamically here?
Probably with a placeholder string and a ci step doing sed magic.