Files
seaweedFS/weed/util/version/constants.go
chrislu bcce8d164c 4.03
2025-12-15 01:06:55 -08:00

26 lines
527 B
Go

package version
import (
"fmt"
"github.com/seaweedfs/seaweedfs/weed/stats"
"github.com/seaweedfs/seaweedfs/weed/util"
)
var (
MAJOR_VERSION = int32(4)
MINOR_VERSION = int32(03)
VERSION_NUMBER = fmt.Sprintf("%d.%02d", MAJOR_VERSION, MINOR_VERSION)
VERSION = util.SizeLimit + " " + VERSION_NUMBER
COMMIT = ""
)
func init() {
// Set version info in stats for Prometheus metrics
stats.SetVersionInfo(VERSION_NUMBER, COMMIT, util.SizeLimit)
}
func Version() string {
return VERSION + " " + COMMIT
}