Skip to content

Commit 0343ed0

Browse files
committed
build: 更新版本
1 parent fe1b968 commit 0343ed0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

internal/version/info.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package version
55
// Version 版本号
66
//
77
// 版本号规则遵循 https://semver.org/lang/zh-CN/
8-
const Version = "0.32.0"
8+
const Version = "0.33.0"
99

1010
// 编译日期,可以由编译器指定
1111
var buildDate string
@@ -19,6 +19,10 @@ func init() {
1919
if buildDate != "" {
2020
fullVersion = Version + "+" + buildDate
2121
}
22+
23+
if commitHash != "" {
24+
fullVersion += "." + commitHash
25+
}
2226
}
2327

2428
// FullVersion 完整的版本号
@@ -27,8 +31,3 @@ func init() {
2731
func FullVersion() string {
2832
return fullVersion
2933
}
30-
31-
// CommitHash 最后一次提示我的 hash 值
32-
func CommitHash() string {
33-
return commitHash
34-
}

0 commit comments

Comments
 (0)