Console Output
+ make -f docker.Makefile lint
Linting...
docker build -t docker-app-lint:jenkins-app-PR-775-6 -f Dockerfile.lint .
#2 [internal] load .dockerignore
#2 transferring context: 73B done
#2 DONE 0.0s
#1 [internal] load build definition from Dockerfile.lint
#1 transferring dockerfile: 414B done
#1 DONE 0.0s
#3 [internal] load metadata for docker.io/library/golang:1.12.9-alpine3.10
#3 DONE 0.1s
#4 [1/5] FROM docker.io/library/golang:1.12.9-alpine3.10@sha256:e0660b4f1e6...
#4 DONE 0.0s
#8 [internal] load build context
#8 transferring context: 73.96MB 1.4s done
#8 DONE 1.4s
#5 [2/5] RUN apk add --no-cache curl git make coreutils
#5 CACHED
#6 [3/5] RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cm...
#6 CACHED
#7 [4/5] WORKDIR /go/src/github.com/docker/app
#7 CACHED
#9 [5/5] COPY . .
#9 DONE 1.1s
#10 exporting to image
#10 exporting layers
#10 exporting layers 0.7s done
#10 writing image sha256:0b0d4287eff473d797059912a1b3313aa3e2e8aa93eeb9bfccdc298c0e6c3214 done
#10 naming to docker.io/library/docker-app-lint:jenkins-app-PR-775-6 done
#10 DONE 0.8s
docker run --rm docker-app-lint:jenkins-app-PR-775-6 make lint
Linting...
internal/commands/remove.go:44:5: SA9003: empty branch (staticcheck)
if err := runRemove(dockerCli, arg, opts, installerContext, installationStore, credentialStore); err != nil {
^
make: *** [Makefile:71: lint] Error 1
docker.Makefile:89: recipe for target 'lint' failed
make: *** [lint] Error 2