mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +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
2
Makefile
2
Makefile
|
|
@ -17,7 +17,7 @@ GIT_COMMIT ?= $(shell git rev-list -1 HEAD)
|
|||
|
||||
PACKAGE = github.com/ethereum/go-ethereum
|
||||
GO_FLAGS += -buildvcs=false
|
||||
GO_LDFLAGS += -ldflags "-X ${PACKAGE}/params.GitCommit=${GIT_COMMIT} "
|
||||
GO_LDFLAGS += -ldflags "-X ${PACKAGE}/params.GitCommit=${GIT_COMMIT}"
|
||||
|
||||
TESTALL = $$(go list ./... | grep -v go-ethereum/cmd/)
|
||||
TESTE2E = ./tests/...
|
||||
|
|
|
|||
|
|
@ -21,13 +21,14 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
GitCommit = ""
|
||||
VersionMajor = 0 // Major version component of the current release
|
||||
VersionMinor = 3 // Minor 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
|
||||
)
|
||||
|
||||
var GitCommit string
|
||||
|
||||
// Version holds the textual version string.
|
||||
var Version = func() string {
|
||||
return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
|
||||
|
|
@ -48,7 +49,7 @@ var VersionWithMetaCommitDetails = func() string {
|
|||
if 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
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue