move "go-checks" to nimbus-build-system [skip ci]

This commit is contained in:
Ștefan Talpalaru 2019-09-05 13:58:42 +02:00
parent 595d21ab41
commit 94ade77c99
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 2 additions and 12 deletions

View File

@ -15,7 +15,7 @@ TOOLS := beacon_node bench_bls_sig_agggregation state_sim
TOOLS_DIRS := beacon_chain benchmarks research
TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))
.PHONY: all build-system-checks deps update go-checks p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean
.PHONY: all build-system-checks deps update p2pd test $(TOOLS) clean_eth2_network_simulation_files eth2_network_simulation clean-testnet0 testnet0 clean-testnet1 testnet1 clean
all: | build-system-checks $(TOOLS)
@ -42,16 +42,6 @@ update: | update-common
beacon_chain.nims:
ln -s beacon_chain.nimble $@
MIN_GO_VER := 1.12
DISABLE_GO_CHECKS := 0
go-checks:
ifeq ($(DISABLE_GO_CHECKS), 0)
which go &>/dev/null || { echo "Go compiler not installed. Aborting."; exit 1; }
GO_VER="$$(go version | sed -E 's/^.*go([0-9.]+).*$$/\1/')"; \
[[ $$(echo -e "$${GO_VER}\n$(MIN_GO_VER)" | sort -t '.' -k 1,1 -k 2,2 -g | head -n 1) == "$(MIN_GO_VER)" ]] || \
{ echo "Minimum Go compiler version required: $(MIN_GO_VER). Version available: $$GO_VER. Aborting."; exit 1; }
endif
P2PD_CACHE :=
p2pd: | go-checks
BUILD_MSG="$(BUILD_MSG) $@" \

@ -1 +1 @@
Subproject commit 178ded44a307a479e77e4dafacddc594fff8ba4c
Subproject commit 6c375c3474a1d5089ac7e7f00f38e535025984b5