Merge pull request #8675 from filecoin-project/jen/devnet
chore: bundle: make devnet get the right bundle
This commit is contained in:
commit
cd2a998980
1
Makefile
1
Makefile
@ -68,6 +68,7 @@ build-devnets: build lotus-seed lotus-shed lotus-wallet lotus-gateway
|
|||||||
.PHONY: build-devnets
|
.PHONY: build-devnets
|
||||||
|
|
||||||
debug: GOFLAGS+=-tags=debug
|
debug: GOFLAGS+=-tags=debug
|
||||||
|
debug: GOFLAGS+=-ldflags=-X=github.com/filecoin-project/lotus/build.NetworkBundle=devnet
|
||||||
debug: build-devnets
|
debug: build-devnets
|
||||||
|
|
||||||
2k: GOFLAGS+=-tags=2k
|
2k: GOFLAGS+=-tags=2k
|
||||||
|
@ -10,7 +10,7 @@ var NetworkBundle string
|
|||||||
|
|
||||||
func GetNetworkBundle() string {
|
func GetNetworkBundle() string {
|
||||||
switch NetworkBundle {
|
switch NetworkBundle {
|
||||||
case "devnet":
|
case "devnet", "2k", "debug":
|
||||||
return "devnet"
|
return "devnet"
|
||||||
case "calibnet", "calibrationnet":
|
case "calibnet", "calibrationnet":
|
||||||
return "calibrationnet"
|
return "calibrationnet"
|
||||||
|
Loading…
Reference in New Issue
Block a user