From 54ca2cfa6ed7fe4b2a39d7244d8cfaa1ced0a2e7 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 12 Feb 2024 03:03:56 -0800 Subject: [PATCH] Make GtS reported version SemVer-compatible (#2611) --- cmd/gotosocial/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gotosocial/main.go b/cmd/gotosocial/main.go index bae5d1faf..5c610f1a3 100644 --- a/cmd/gotosocial/main.go +++ b/cmd/gotosocial/main.go @@ -77,6 +77,7 @@ func main() { } // version will build a version string from binary's stored build information. +// It is SemVer-compatible so long as Version is SemVer-compatible. func version() string { // Read build information from binary build, ok := godebug.ReadBuildInfo() @@ -115,5 +116,5 @@ func version() string { } } - return strings.Join(info, " ") + return strings.Join(info, "+") }