From dfac94bf9b38daa76464106518142b1c7d7b7854 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 27 Apr 2022 22:20:30 +0200 Subject: [PATCH] tools+lint: fix linter for Go 1.18 --- .golangci.yml | 2 +- tools/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 6c1fc1908..1b5226b16 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,7 +43,7 @@ linters-settings: - G402 # Look for bad TLS connection settings. - G306 # Poor file permissions used when writing to a new file. staticcheck: - go: "1.16" + go: "1.18" checks: ["-SA1019"] linters: diff --git a/tools/Dockerfile b/tools/Dockerfile index 9df610994..452c92738 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17.3-buster +FROM golang:1.18.0-buster RUN apt-get update && apt-get install -y git ENV GOCACHE=/tmp/build/.cache