Fix make check
dependency error (#1818)
While invoking `make check` from a fresh new environment the following failure occured: ``` [ec2-user@..... coredns]$ docker run -i -t --rm -v $PWD:/go/src/github.com/coredns/coredns -w /go/src/github.com/coredns/coredns golang:1.10 root@e2d6a6c17132:/go/src/github.com/coredns/coredns# make check ** presubmit/context ** presubmit/test-lowercase ( gometalinter --deadline=2m --disable-all --enable=goimports --vendor --exclude=^pb/ ./... || true ) /bin/sh: 1: gometalinter: not found go generate coredns.go ``` This fix fixes the issue in Makefile so that deps could be installed first. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
7ac507d9ff
commit
a40345d65f
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -85,6 +85,8 @@ linter:
|
|||
|
||||
.PHONY: goimports
|
||||
goimports:
|
||||
go get -u github.com/alecthomas/gometalinter
|
||||
gometalinter --install goimports
|
||||
( gometalinter --deadline=2m --disable-all --enable=goimports --vendor --exclude=^pb/ ./... || true )
|
||||
|
||||
# Presubmit runs all scripts in .presubmit; any non 0 exit code will fail the build.
|
||||
|
|
Loading…
Add table
Reference in a new issue