mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
Makefile, params: fix git commit in bor version cmd (#835)
This commit is contained in:
parent
6dee9b5f40
commit
61d35d4980
2 changed files with 4 additions and 3 deletions
|
|
@ -21,13 +21,14 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
GitCommit = ""
|
|
||||||
VersionMajor = 0 // Major version component of the current release
|
VersionMajor = 0 // Major version component of the current release
|
||||||
VersionMinor = 3 // Minor version component of the current release
|
VersionMinor = 3 // Minor version component of the current release
|
||||||
VersionPatch = 9 // Patch version component of the current release
|
VersionPatch = 9 // Patch version component of the current release
|
||||||
VersionMeta = "beta" // Version metadata to append to the version string
|
VersionMeta = "beta" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var GitCommit string
|
||||||
|
|
||||||
// Version holds the textual version string.
|
// Version holds the textual version string.
|
||||||
var Version = func() string {
|
var Version = func() string {
|
||||||
return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
|
return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
|
||||||
|
|
@ -48,7 +49,7 @@ var VersionWithMetaCommitDetails = func() string {
|
||||||
if VersionMeta != "" {
|
if VersionMeta != "" {
|
||||||
v += "-" + VersionMeta
|
v += "-" + VersionMeta
|
||||||
}
|
}
|
||||||
v_git := fmt.Sprintf("Version : %s\nGitCommit : %s\n", v, GitCommit)
|
v_git := fmt.Sprintf("Version: %s\nGitCommit: %s", v, GitCommit)
|
||||||
return v_git
|
return v_git
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue