WIP: fix(semver): fix produced version number #1472

Closed
dpschen wants to merge 1 commits from dpschen/api:fix-produced-semver-version-number into main
2 changed files with 2 additions and 3 deletions

View File

@ -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.

@konrad How could we render the current version dynamically here?

@konrad How could we render the current version dynamically here?

Probably with a placeholder string and a ci step doing sed magic.

Probably with a placeholder string and a ci step doing sed magic.
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.

View File

@ -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)

Can you remove this line?

Can you remove this line?
if os.Getenv("DRONE_TAG") != "" {