build: modify make file to use go get with precise btcd hash

This commit is contained in:
Olaoluwa Osuntokun 2018-11-30 14:00:46 -08:00
parent eafee05dd2
commit 24ab9970bf
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -95,16 +95,9 @@ $(LINT_BIN):
@$(call print, "Fetching gometalinter.v2")
GO111MODULE=off go get -u $(LINT_PKG)
$(BTCD_DIR):
@$(call print, "Fetching btcd.")
go get -d github.com/btcsuite/btcd
btcd: $(BTCD_DIR)
@$(call print, "Compiling btcd dependencies.")
cd $(BTCD_DIR) && ( git checkout $(BTCD_COMMIT) || ( git fetch --all && git checkout $(BTCD_COMMIT) ) )
@$(call print, "Installing btcd and btcctl.")
$(GOINSTALL) $(BTCD_PKG)
$(GOINSTALL) $(BTCD_PKG)/cmd/btcctl
btcd:
@$(call print, "Installing btcd...")
go get -v github.com/btcsuite/btcd/@v0.0.0-20180823030728-$(BTCD_COMMIT)
# ============
# INSTALLATION