Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
6c79cfdf
Commit
6c79cfdf
authored
Oct 22, 2021
by
suyanlong
Committed by
vipwzw
Oct 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[[FIX]] Fixed semantic-release-replace-plugin config
parent
f66b09c7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
.releaserc.yml
.releaserc.yml
+1
-3
main.go
main.go
+3
-1
version.go
version/version.go
+10
-1
No files found.
.releaserc.yml
View file @
6c79cfdf
...
...
@@ -31,8 +31,7 @@
"
countMatches"
:
true
},
{
{
"
files"
:
[
"
README.md"
],
"
files"
:
[
"
README.md"
],
"
from"
:
"
#
chain33
官方插件系统(.*)"
,
"
to"
:
"
#
chain33
官方插件系统(v${nextRelease.version})"
,
"
results"
:
[
...
...
@@ -45,7 +44,6 @@
],
"
countMatches"
:
true
},
}
]
}
],
...
...
main.go
View file @
6c79cfdf
...
...
@@ -29,7 +29,9 @@ var (
func
main
()
{
flag
.
Parse
()
if
*
versionCmd
{
fmt
.
Println
(
fmt
.
Sprintf
(
"build time: %s"
,
version
.
BuildTime
))
fmt
.
Println
(
fmt
.
Sprintf
(
"Build time: %s"
,
version
.
BuildTime
))
fmt
.
Println
(
fmt
.
Sprintf
(
"System version: %s"
,
version
.
Platform
))
fmt
.
Println
(
fmt
.
Sprintf
(
"Golang version: %s"
,
version
.
GoVersion
))
fmt
.
Println
(
fmt
.
Sprintf
(
"plugin version: %s"
,
version
.
GetVersion
()))
fmt
.
Println
(
fmt
.
Sprintf
(
"chain33 frame version: %s"
,
frameVersion
.
GetVersion
()))
return
...
...
version/version.go
View file @
6c79cfdf
package
version
import
(
"fmt"
"runtime"
)
//var version control
var
(
Version
=
"
master
"
Version
=
"
1.65.3
"
GitCommit
string
BuildTime
string
// GoVersion system go version
GoVersion
=
runtime
.
Version
()
// Platform info
Platform
=
fmt
.
Sprintf
(
"%s/%s"
,
runtime
.
GOOS
,
runtime
.
GOARCH
)
)
//GetVersion 获取版本信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment