Console Output
+ make -f docker.Makefile lint
Linting...
docker build -t docker-app-lint:jenkins-app-PR-607-3 -f Dockerfile.lint .
Sending build context to Docker daemon 79.46MB
Step 1/8 : ARG ALPINE_VERSION=3.10
Step 2/8 : ARG GO_VERSION=1.12.9
Step 3/8 : FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION}
---> e0d646523991
Step 4/8 : RUN apk add --no-cache curl git make coreutils
---> Using cache
---> 6a555dfd8852
Step 5/8 : RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.16.0 && rm -rf /go/src/* /go/pkg/*
---> Using cache
---> 354f8a8567a6
Step 6/8 : WORKDIR /go/src/github.com/docker/app
---> Using cache
---> 2bc90725cd0d
Step 7/8 : ENV CGO_ENABLED=0
---> Using cache
---> 7ec0d574f54a
Step 8/8 : COPY . .
---> 195a7ac76161
Successfully built 195a7ac76161
Successfully tagged docker-app-lint:jenkins-app-PR-607-3
docker run --rm docker-app-lint:jenkins-app-PR-607-3 make lint
Linting...
internal/commands/root.go:31: File is not `goimports`-ed (goimports)
case "" :
internal/commands/root.go:42:24: Error return value of `(*github.com/docker/app/vendor/github.com/spf13/pflag.FlagSet).MarkHidden` is not checked (errcheck)
cmd.Flags().MarkHidden("completion")
^
make: *** [Makefile:81: lint] Error 1
docker.Makefile:121: recipe for target 'lint' failed
make: *** [lint] Error 2