Merge pull request #2270 from halseth/unit-test-go-sum
[make+mod] fetch correct btcd version
This commit is contained in:
commit
b8d6ac8cb2
5
Makefile
5
Makefile
@ -15,11 +15,10 @@ BTCD_DIR :=${GOPATH}/src/$(BTCD_PKG)
|
||||
COMMIT := $(shell git describe --abbrev=40 --dirty)
|
||||
LDFLAGS := -ldflags "-X $(PKG)/build.Commit=$(COMMIT)"
|
||||
|
||||
BTCD_COMMIT := $(shell cat go.sum | \
|
||||
BTCD_COMMIT := $(shell cat go.mod | \
|
||||
grep $(BTCD_PKG) | \
|
||||
tail -n1 | \
|
||||
awk -F " " '{ print $$2 }' | \
|
||||
awk -F "-" '{ print $$3 }' | \
|
||||
awk -F "/" '{ print $$1 }')
|
||||
|
||||
GOBUILD := GO111MODULE=on go build -v
|
||||
@ -90,7 +89,7 @@ $(LINT_BIN):
|
||||
|
||||
btcd:
|
||||
@$(call print, "Installing btcd.")
|
||||
GO111MODULE=on go get -v github.com/btcsuite/btcd/@v0.0.0-20180823030728-$(BTCD_COMMIT)
|
||||
GO111MODULE=on go get -v github.com/btcsuite/btcd/@$(BTCD_COMMIT)
|
||||
|
||||
# ============
|
||||
# INSTALLATION
|
||||
|
Loading…
Reference in New Issue
Block a user