File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ sudo: required
23
23
24
24
script :
25
25
- export GO111MODULE=on
26
- - make lint unit build
26
+ - make lint unit build mod-check
27
27
28
28
after_script :
29
29
- echo "Uploading to termbin.com..." && find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ GOTEST := GO111MODULE=on go test -v
7
7
GO_BIN := ${GOPATH}/bin
8
8
GOBUILD := GO111MODULE=on go build -v
9
9
GOINSTALL := GO111MODULE=on go install -v
10
+ GOMOD := GO111MODULE=on go mod
10
11
11
12
COMMIT := $(shell git describe --abbrev=40 --dirty)
12
13
LDFLAGS := -ldflags "-X $(PKG ) /build.Commit=$(COMMIT ) "
@@ -26,6 +27,12 @@ TEST_FLAGS = -test.timeout=20m
26
27
27
28
UNIT := $(GOLIST ) | $(XARGS ) env $(GOTEST ) $(TEST_FLAGS )
28
29
30
+ GREEN := "\\033[0;32m"
31
+ NC := "\\033[0m"
32
+ define print
33
+ echo $(GREEN ) $1$(NC )
34
+ endef
35
+
29
36
$(LINT_BIN ) :
30
37
@$(call print, "Fetching linter")
31
38
$(DEPGET ) $(LINT_PKG ) @$(LINT_COMMIT )
@@ -42,6 +49,15 @@ lint: $(LINT_BIN)
42
49
@$(call print, "Linting source.")
43
50
$(LINT )
44
51
52
+ mod-tidy :
53
+ @$(call print, "Tidying modules.")
54
+ $(GOMOD ) tidy
55
+
56
+ mod-check :
57
+ @$(call print, "Checking modules.")
58
+ $(GOMOD ) tidy
59
+ if test -n " $$ (git status | grep -e " go.mod\| go.sum" )" ; then echo " Running go mod tidy changes go.mod/go.sum" ; git status; git diff; exit 1; fi
60
+
45
61
# ============
46
62
# INSTALLATION
47
63
# ============
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ github.com/btcsuite/btcutil v1.0.2 h1:9iZ1Terx9fMIOtq1VrwdqfsATL9MC2l8ZrUY6YZ2ut
35
35
github.com/btcsuite/btcutil v1.0.2 /go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts =
36
36
github.com/btcsuite/btcutil/psbt v1.0.2 h1:gCVY3KxdoEVU7Q6TjusPO+GANIwVgr9yTLqM+a6CZr8 =
37
37
github.com/btcsuite/btcutil/psbt v1.0.2 /go.mod h1:LVveMu4VaNSkIRTZu2+ut0HDBRuYjqGocxDMNS1KuGQ =
38
- github.com/btcsuite/btcwallet v0.11.1-0.20200403222202-ada7ca077ebb h1:kkq2SSCy+OrC7GVZLIqutoHVR2yW4SJQdX70jtmuLDI =
39
- github.com/btcsuite/btcwallet v0.11.1-0.20200403222202-ada7ca077ebb /go.mod h1:9fJNm1aXi4q9P5Nk23mmqppCy1Le3f2/JMWj9UXKkCc =
40
38
github.com/btcsuite/btcwallet v0.11.1-0.20200515224913-e0e62245ecbe h1:0m9uXDcnUc3Fv72635O/MfLbhbW+0hfSVgRiWezpkHU =
41
39
github.com/btcsuite/btcwallet v0.11.1-0.20200515224913-e0e62245ecbe /go.mod h1:9+AH3V5mcTtNXTKe+fe63fDLKGOwQbZqmvOVUef+JFE =
42
40
github.com/btcsuite/btcwallet/wallet/txauthor v1.0.0 h1:KGHMW5sd7yDdDMkCZ/JpP0KltolFsQcB973brBnfj4c =
@@ -162,8 +160,6 @@ github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce7
162
160
github.com/lightninglabs/protobuf-hex-display v1.3.3-0.20191212020323-b444784ce75d /go.mod h1:KDb67YMzoh4eudnzClmvs2FbiLG9vxISmLApUkCa4uI =
163
161
github.com/lightningnetwork/lightning-onion v1.0.1 h1:qChGgS5+aPxFeR6JiUsGvanei1bn6WJpYbvosw/1604 =
164
162
github.com/lightningnetwork/lightning-onion v1.0.1 /go.mod h1:rigfi6Af/KqsF7Za0hOgcyq2PNH4AN70AaMRxcJkff4 =
165
- github.com/lightningnetwork/lnd v0.10.0-beta.rc5 h1:HcX35Djwk+xoNQe/LA7HnQ11jzbq68TAcpBluhNIKqc =
166
- github.com/lightningnetwork/lnd v0.10.0-beta.rc5 /go.mod h1:mEnmP+sSgiKUFBozT3I5xEOgRAREMEWd/3lcWDrB+5E =
167
163
github.com/lightningnetwork/lnd v0.10.1-beta.rc1 h1:4uBkLHrxeIf6ad5AHlFhGcOhtbvmYwK4iTcDMixmLpw =
168
164
github.com/lightningnetwork/lnd v0.10.1-beta.rc1 /go.mod h1:mRd+8n/QOlAiolWVnt1RaTzxVvOyplT3J5uYwUb/EDw =
169
165
github.com/lightningnetwork/lnd/cert v1.0.2 /go.mod h1:fmtemlSMf5t4hsQmcprSoOykypAPp+9c+0d0iqTScMo =
You can’t perform that action at this time.
0 commit comments