mirror of
https://github.com/matrix-org/dendrite
synced 2024-11-18 07:40:53 +01:00
b12b7abcc0
Squashed commit of the following: commit 570528e5f19d76fe2fd7ea646246eea9650b1b60 Author: Kegan Dougal <kegan@matrix.org> Date: Thu Oct 8 14:52:10 2020 +0100 v0.1.0 commit 02c020bced3be6d1a63e1001ab9c0ef6231ba087 Merge: db840f028035c50c
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Thu Oct 8 14:46:32 2020 +0100 Merge branch 'master' into v0.1.0 commit db840f025b5d7b7c7e1ba905646571cb03dd7b22 Merge: adc19a3d78f6e1a3
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Thu Oct 8 13:31:36 2020 +0100 Merge branch 'master' into v0.1.0 commit adc19a3d5f0c9d5a85b3c1dd7d1772236fb8cc9b Merge:c8fc6855
3e12f6e9
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Thu Oct 8 10:31:58 2020 +0100 Merge branch 'master' into v0.1.0 commitc8fc68555c
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Wed Oct 7 18:41:04 2020 +0100 Version 0.1.0rc3 commit15bf385141
Merge:e7d9eea4
8bca7a83
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Wed Oct 7 18:39:25 2020 +0100 Merge branch 'master' into v0.1.0 commite7d9eea4a0
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Oct 5 17:56:45 2020 +0100 v0.1.0rc2 commit3fa76370f2
Merge:f7cecdd9
52ddded7
Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Mon Oct 5 17:56:28 2020 +0100 Merge branch 'master' into v0.1.0 commitf7cecdd9a8
Author: Kegan Dougal <kegan@matrix.org> Date: Fri Oct 2 17:25:59 2020 +0100 Bump to 0.1.0rc1
27 lines
573 B
Go
27 lines
573 B
Go
package internal
|
|
|
|
import "fmt"
|
|
|
|
// -ldflags "-X github.com/matrix-org/dendrite/internal.branch=master"
|
|
var branch string
|
|
|
|
// -ldflags "-X github.com/matrix-org/dendrite/internal.build=alpha"
|
|
var build string
|
|
|
|
const (
|
|
VersionMajor = 0
|
|
VersionMinor = 1
|
|
VersionPatch = 0
|
|
VersionTag = "" // example: "rc1"
|
|
)
|
|
|
|
func VersionString() string {
|
|
version := fmt.Sprintf("%d.%d.%d%s", VersionMajor, VersionMinor, VersionPatch, VersionTag)
|
|
if branch != "" {
|
|
version += fmt.Sprintf("-%s", branch)
|
|
}
|
|
if build != "" {
|
|
version += fmt.Sprintf("+%s", build)
|
|
}
|
|
return version
|
|
}
|