Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ifeq (${DISABLE_OPTIMIZATION},true)
VERSION:="$(VERSION)-noopt"
endif

.PHONY: clean all fmt vet lint build test vendor-update containers check-docs tutorial-test
.PHONY: clean all fmt vet lint build test vendor-update containers check-docs tutorial-test get-tools
.DEFAULT: all
all: clean fmt vet lint build test binaries

Expand All @@ -37,6 +37,12 @@ build-in-container: clean
-v ${CURDIR}/build:/go/src/github.com/docker/infrakit/build \
infrakit-build

get-tools:
@echo "+ $@"
@go get -u \
github.com/golang/lint/golint \
github.com/wfarner/blockcheck

vet:
@echo "+ $@"
@go vet $(PKGS)
Expand All @@ -53,7 +59,7 @@ fmt-save:
lint:
@echo "+ $@"
$(if $(shell which golint || echo ''), , \
$(error Please install golint: `go get -u github.com/golang/lint/golint`))
$(error Please install golint: `make get-tools`))
@test -z "$$(golint ./... 2>&1 | grep -v ^vendor/ | grep -v mock/ | tee /dev/stderr)"

check-docs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ We recommended go version 1.7.1 or greater for all platforms.

Also install a few build tools:
```shell
go get -u github.com/golang/lint/golint github.com/wfarner/blockcheck # if you're running tests
make get-tools
```

### Running tests
Expand Down