mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
Make GtS reported version SemVer-compatible (#2611)
This commit is contained in:
parent
db835f4810
commit
54ca2cfa6e
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// version will build a version string from binary's stored build information.
|
// 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 {
|
func version() string {
|
||||||
// Read build information from binary
|
// Read build information from binary
|
||||||
build, ok := godebug.ReadBuildInfo()
|
build, ok := godebug.ReadBuildInfo()
|
||||||
|
@ -115,5 +116,5 @@ func version() string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return strings.Join(info, " ")
|
return strings.Join(info, "+")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue