
Golang 1.15 comes to few improvements, one of them is to have smaller binary. This PR is to make golang 1.15 as default version in CI, I also update Docker based image to golang:1.15* as well. Two issues faced with golang 1.15: - Conflict between -v in `golangci-lint` and `go test`. Update to --verbose to avoid the same. [1] - `nolintlint_unused.go` testdata is not matching regex. Correct by adding one space after // [1]: https://github.com/golang/go/issues/40763 Signed-off-by: Tam Mach <sayboras@yahoo.com>
11 lines
351 B
Docker
11 lines
351 B
Docker
FROM golang:1.15-alpine
|
|
|
|
# gcc is required to support cgo;
|
|
# git and mercurial are needed most times for go get`, etc.
|
|
# See https://github.com/docker-library/golang/issues/80
|
|
RUN apk --no-cache add gcc musl-dev git mercurial
|
|
|
|
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
|
|
COPY golangci-lint /usr/bin/
|
|
CMD ["golangci-lint"]
|