Skip to content

Commit 6c79cfd

Browse files
suyanlongvipwzw
authored andcommitted
[[FIX]] Fixed semantic-release-replace-plugin config
1 parent f66b09c commit 6c79cfd

3 files changed

Lines changed: 26 additions & 17 deletions

File tree

.releaserc.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,19 @@
3131
"countMatches": true
3232
},
3333
{
34-
{
35-
"files": [ "README.md" ],
36-
"from": "# chain33 官方插件系统(.*)",
37-
"to": "# chain33 官方插件系统(v${nextRelease.version})",
38-
"results": [
39-
{
40-
"file": "README.md",
41-
"hasChanged": true,
42-
"numMatches": 1,
43-
"numReplacements": 1
44-
}
45-
],
46-
"countMatches": true
47-
},
48-
}
34+
"files": ["README.md"],
35+
"from": "# chain33 官方插件系统(.*)",
36+
"to": "# chain33 官方插件系统(v${nextRelease.version})",
37+
"results": [
38+
{
39+
"file": "README.md",
40+
"hasChanged": true,
41+
"numMatches": 1,
42+
"numReplacements": 1
43+
}
44+
],
45+
"countMatches": true
46+
},
4947
]
5048
}
5149
],

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ var (
2929
func main() {
3030
flag.Parse()
3131
if *versionCmd {
32-
fmt.Println(fmt.Sprintf("build time: %s", version.BuildTime))
32+
fmt.Println(fmt.Sprintf("Build time: %s", version.BuildTime))
33+
fmt.Println(fmt.Sprintf("System version: %s", version.Platform))
34+
fmt.Println(fmt.Sprintf("Golang version: %s", version.GoVersion))
3335
fmt.Println(fmt.Sprintf("plugin version: %s", version.GetVersion()))
3436
fmt.Println(fmt.Sprintf("chain33 frame version: %s", frameVersion.GetVersion()))
3537
return

version/version.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
package version
22

3+
import (
4+
"fmt"
5+
"runtime"
6+
)
7+
38
//var version control
49
var (
5-
Version = "master"
10+
Version = "1.65.3"
611
GitCommit string
712
BuildTime string
13+
// GoVersion system go version
14+
GoVersion = runtime.Version()
15+
// Platform info
16+
Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
817
)
918

1019
//GetVersion 获取版本信息

0 commit comments

Comments
 (0)