mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-08 21:47:17 +08:00
cicd: robot automated Change
This commit is contained in:
parent
070ba0877f
commit
ad14bd1bd6
@ -40,8 +40,8 @@ var (
|
|||||||
// companion .gitattributes file containing 'export-subst' in this same
|
// companion .gitattributes file containing 'export-subst' in this same
|
||||||
// directory. See also https://git-scm.com/docs/gitattributes
|
// directory. See also https://git-scm.com/docs/gitattributes
|
||||||
gitVersion string = "latest"
|
gitVersion string = "latest"
|
||||||
gitCommit string = "" // sha1 from git, output of $(git rev-parse HEAD)
|
gitCommit string = "" // sha1 from git, output of $(git rev-parse HEAD)
|
||||||
gitTreeState string = "" // state of git tree, either "clean" or "dirty"
|
gitTreeState string = "" // state of git tree, either "clean" or "dirty"
|
||||||
|
|
||||||
buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
||||||
)
|
)
|
||||||
@ -4,15 +4,15 @@ package version
|
|||||||
// TODO: Add []string of api versions supported? It's still unclear
|
// TODO: Add []string of api versions supported? It's still unclear
|
||||||
// how we'll want to distribute that information.
|
// how we'll want to distribute that information.
|
||||||
type Info struct {
|
type Info struct {
|
||||||
Major string `json:"major,omitempty"`
|
Major string `json:"major,omitempty"`
|
||||||
Minor string `json:"minor,omitempty"`
|
Minor string `json:"minor,omitempty"`
|
||||||
GitVersion string `json:"gitVersion"`
|
GitVersion string `json:"gitVersion"`
|
||||||
GitTreeState string `json:"gitTreeState,omitempty"`
|
GitTreeState string `json:"gitTreeState,omitempty"`
|
||||||
GitCommit string `json:"gitCommit,omitempty"`
|
GitCommit string `json:"gitCommit,omitempty"`
|
||||||
BuildDate string `json:"buildDate"`
|
BuildDate string `json:"buildDate"`
|
||||||
GoVersion string `json:"goVersion"`
|
GoVersion string `json:"goVersion"`
|
||||||
Compiler string `json:"compiler"`
|
Compiler string `json:"compiler"`
|
||||||
Platform string `json:"platform"`
|
Platform string `json:"platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Output struct {
|
type Output struct {
|
||||||
@ -21,7 +21,7 @@ type Output struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OpenIMClientVersion struct {
|
type OpenIMClientVersion struct {
|
||||||
ClientVersion string `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` //sdk core version
|
ClientVersion string `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` //sdk core version
|
||||||
}
|
}
|
||||||
|
|
||||||
// String returns info as a human-friendly version string.
|
// String returns info as a human-friendly version string.
|
||||||
|
|||||||
@ -13,15 +13,15 @@ func Get() Info {
|
|||||||
// These variables typically come from -ldflags settings and in
|
// These variables typically come from -ldflags settings and in
|
||||||
// their absence fallback to the settings in ./base.go
|
// their absence fallback to the settings in ./base.go
|
||||||
return Info{
|
return Info{
|
||||||
Major: gitMajor,
|
Major: gitMajor,
|
||||||
Minor: gitMinor,
|
Minor: gitMinor,
|
||||||
GitVersion: gitVersion,
|
GitVersion: gitVersion,
|
||||||
GitTreeState: gitTreeState,
|
GitTreeState: gitTreeState,
|
||||||
GitCommit: gitCommit,
|
GitCommit: gitCommit,
|
||||||
BuildDate: buildDate,
|
BuildDate: buildDate,
|
||||||
GoVersion: runtime.Version(),
|
GoVersion: runtime.Version(),
|
||||||
Compiler: runtime.Compiler,
|
Compiler: runtime.Compiler,
|
||||||
Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH),
|
Platform: fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user