cli docsgen: Ignore build type too

This commit is contained in:
Łukasz Magiera
2021-04-30 11:18:15 +02:00
parent ed08366cac
commit 3574ec3d9d
4 changed files with 7 additions and 9 deletions
+4 -6
View File
@@ -5,12 +5,6 @@ import "os"
var CurrentCommit string
var BuildType int
func init() {
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
CurrentCommit = ""
}
}
const (
BuildDefault = 0
BuildMainnet = 0x1
@@ -40,5 +34,9 @@ func buildType() string {
const BuildVersion = "1.11.0-dev"
func UserVersion() string {
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
return BuildVersion
}
return BuildVersion + buildType() + CurrentCommit
}
+1 -1
View File
@@ -7,7 +7,7 @@ USAGE:
lotus-miner [global options] command [command options] [arguments...]
VERSION:
1.11.0-dev+mainnet
1.11.0-dev
COMMANDS:
init Initialize a lotus miner repo
+1 -1
View File
@@ -7,7 +7,7 @@ USAGE:
lotus-worker [global options] command [command options] [arguments...]
VERSION:
1.11.0-dev+mainnet
1.11.0-dev
COMMANDS:
run Start lotus worker
+1 -1
View File
@@ -7,7 +7,7 @@ USAGE:
lotus [global options] command [command options] [arguments...]
VERSION:
1.11.0-dev+mainnet
1.11.0-dev
COMMANDS:
daemon Start a lotus daemon process