Prepare stable release

This commit is contained in:
Shane Bammel 2024-02-19 13:27:16 -06:00
parent 9350c863dd
commit 2e36a257b1

View File

@ -31,22 +31,26 @@ var (
// see https://calver.org // see https://calver.org
const ( const (
VersionMajor = 2 // Major version component of the current release VersionMajor = 2 // Major version component of the current release
VersionMinor = 57 // Minor version component of the current release VersionMinor = 4 // Minor version component of the current release
VersionMicro = 3 // Patch version component of the current release VersionMicro = 0 // Patch version component of the current release
VersionModifier = "" // Modifier component of the current release VersionModifier = "stable" // Modifier component of the current release
VariantMeta = "pulse" // Variant metadata to append to the version string
VersionKeyCreated = "ErigonVersionCreated" VersionKeyCreated = "ErigonVersionCreated"
VersionKeyFinished = "ErigonVersionFinished" VersionKeyFinished = "ErigonVersionFinished"
) )
// Version holds the textual version string. // Version holds the textual version string.
var Version = func() string { var Version = func() string {
return fmt.Sprintf("%d.%02d.%d", VersionMajor, VersionMinor, VersionMicro) return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionMicro)
}() }()
// VersionWithMeta holds the textual version string including the metadata. // VersionWithMeta holds the textual version string including the metadata.
var VersionWithMeta = func() string { var VersionWithMeta = func() string {
v := Version v := Version
if VariantMeta != "" {
v += "-" + VariantMeta
}
if VersionModifier != "" { if VersionModifier != "" {
v += "-" + VersionModifier v += "-" + VersionModifier
} }