bump up golangci to 1.20 (#1133)

* bump up golangci to 1.20

Signed-off-by: Xiang Dai <764524258@qq.com>

* Built and published 0.7.3.  Updated all references

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Xiang Dai <764524258@qq.com>

* Removed concurrency limitation and added 5m timeout

Signed-off-by: Joe Elliott <number101010@gmail.com>

* Upping concurrency to try to reduce lint time

Signed-off-by: Joe Elliott <number101010@gmail.com>

Co-authored-by: Xiang Dai <764524258@qq.com>
Co-authored-by: Joe Elliott <number101010@gmail.com>
pull/1157/head
Xiang Dai 6 years ago committed by Ed Welch
parent 8393c3382a
commit b6faee205a
  1. 2
      .circleci/config.yml
  2. 10
      .drone/drone.yml
  3. 4
      Makefile
  4. 2
      cmd/docker-driver/Dockerfile
  5. 2
      cmd/loki-canary/Dockerfile.cross
  6. 2
      cmd/loki/Dockerfile.cross
  7. 2
      cmd/promtail/Dockerfile.cross
  8. 2
      loki-build-image/Dockerfile

@ -47,7 +47,7 @@ workflows:
# https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
.defaults: &defaults
docker:
- image: grafana/loki-build-image:0.7.2
- image: grafana/loki-build-image:0.7.3
working_directory: /src/loki
jobs:

@ -5,19 +5,19 @@ steps:
- make BUILD_IN_CONTAINER=false test
depends_on:
- clone
image: grafana/loki-build-image:0.7.2
image: grafana/loki-build-image:0.7.3
name: test
- commands:
- make BUILD_IN_CONTAINER=false lint
depends_on:
- clone
image: grafana/loki-build-image:0.7.2
image: grafana/loki-build-image:0.7.3
name: lint
- commands:
- make BUILD_IN_CONTAINER=false check-generated-files
depends_on:
- clone
image: grafana/loki-build-image:0.7.2
image: grafana/loki-build-image:0.7.3
name: check-generated-files
- commands:
- make BUILD_IN_CONTAINER=false check-mod
@ -25,7 +25,7 @@ steps:
- clone
- test
- lint
image: grafana/loki-build-image:0.7.2
image: grafana/loki-build-image:0.7.3
name: check-mod
workspace:
base: /src
@ -492,7 +492,7 @@ steps:
environment:
CIRCLE_TOKEN:
from_secret: circle_token
image: grafana/loki-build-image:0.7.2
image: grafana/loki-build-image:0.7.3
name: trigger
trigger:
ref:

@ -20,7 +20,7 @@ IMAGE_NAMES := $(foreach dir,$(DOCKER_IMAGE_DIRS),$(patsubst %,$(IMAGE_PREFIX)%,
# make BUILD_IN_CONTAINER=false target
# or you can override this with an environment variable
BUILD_IN_CONTAINER ?= true
BUILD_IMAGE_VERSION := 0.7.2
BUILD_IMAGE_VERSION := 0.7.3
# Docker image info
IMAGE_PREFIX ?= grafana
@ -212,7 +212,7 @@ publish: dist
########
lint:
GO111MODULE=on GOGC=10 golangci-lint run -j 4
GO111MODULE=on GOGC=10 golangci-lint run --timeout=5m -j 16
########
# Test #

@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.2
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intented to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile .

@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.2
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intented to be called from the root like so:
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile .

@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.2
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intented to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile .

@ -1,4 +1,4 @@
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.2
ARG BUILD_IMAGE=grafana/loki-build-image:0.7.3
# Directories in this file are referenced from the root of the project not this folder
# This file is intented to be called from the root like so:
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile .

@ -9,7 +9,7 @@ RUN apk add --no-cache curl && \
FROM alpine as golangci
RUN apk add --no-cache curl && \
cd / && \
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.19.1
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.20.0
FROM alpine:edge as docker
RUN apk add --no-cache docker-cli

Loading…
Cancel
Save