This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ifeq (${DISABLE_OPTIMIZATION},true)
11
11
VERSION:="$(VERSION)-noopt"
12
12
endif
13
13
14
- .PHONY : clean all fmt vet lint build test vendor-update containers check-docs tutorial-test
14
+ .PHONY : clean all fmt vet lint build test vendor-update containers check-docs tutorial-test get-tools
15
15
.DEFAULT : all
16
16
all : clean fmt vet lint build test binaries
17
17
@@ -37,6 +37,12 @@ build-in-container: clean
37
37
-v ${CURDIR} /build:/go/src/github.com/docker/infrakit/build \
38
38
infrakit-build
39
39
40
+ get-tools :
41
+ @echo " + $@ "
42
+ @go get -u \
43
+ github.com/golang/lint/golint \
44
+ github.com/wfarner/blockcheck
45
+
40
46
vet :
41
47
@echo " + $@ "
42
48
@go vet $(PKGS )
@@ -53,7 +59,7 @@ fmt-save:
53
59
lint :
54
60
@echo " + $@ "
55
61
$(if $(shell which golint || echo '') , , \
56
- $(error Please install golint: `go get -u github.com/golang/lint/golint `) )
62
+ $(error Please install golint: `make get-tools `) )
57
63
@test -z " $$ (golint ./... 2>&1 | grep -v ^vendor/ | grep -v mock/ | tee /dev/stderr)"
58
64
59
65
check-docs :
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ We recommended go version 1.7.1 or greater for all platforms.
54
54
55
55
Also install a few build tools:
56
56
``` shell
57
- go get -u github.com/golang/lint/golint github.com/wfarner/blockcheck # if you're running tests
57
+ make get-tools
58
58
```
59
59
60
60
### Running tests
You can’t perform that action at this time.
0 commit comments