Update path of golint

The new path is golang.org/x/lint/golint.
See ead987a65e.

Signed-off-by: Julien Barbot <jubarbot@cisco.com>
This commit is contained in:
Julien Barbot
2018-10-18 12:32:13 +02:00
committed by Joffrey F
parent b36cb27a04
commit 46b43ebeea
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ the directory that contains your `src` directory, e.g.:
$ export GOPATH=/home/yourname/work
$ mkdir -p $GOPATH/src/github.com/docker
$ cd $GOPATH/src/github.com/docker && git clone git@github.com:docker/machine.git
$ cd machine
$ cd machine
At this point, simply run:
@@ -66,7 +66,7 @@ to clean-up build results.
## Tests and validation
We use the usual `go` tools for this, to run those commands you need at least the linter which you can
install with `go get -u github.com/golang/lint/golint`
install with `go get -u golang.org/x/lint/golint`
To run basic validation (dco, fmt), and the project unit tests, call:

View File

@@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
sshfs \
&& rm -rf /var/lib/apt/lists/*
RUN go get github.com/golang/lint/golint \
RUN go get golang.org/x/lint/golint \
github.com/mattn/goveralls \
golang.org/x/tools/cover

View File

@@ -16,5 +16,5 @@ vet:
lint:
$(if $(GOLINT), , \
$(error Please install golint: go get -u github.com/golang/lint/golint))
$(error Please install golint: go get -u golang.org/x/lint/golint))
@test -z "$$($(GOLINT) ./... 2>&1 | grep -v vendor/ | grep -v "cli/" | grep -v "amazonec2/" |grep -v "openstack/" |grep -v "softlayer/" | grep -v "should have comment" | tee /dev/stderr)"