Skip to content

Commit

Permalink
Upgraded golangci-lint to 1.52.2 (latest).
Browse files Browse the repository at this point in the history
This enables some new linters and disables some deprecated ones.

Context: tektoncd/pipeline#5899

This PR is step one in unblocking tektoncd/pipeline#6518

/kind cleanup
  • Loading branch information
bendory authored and tekton-robot committed Apr 12, 2023
1 parent c835762 commit 47ba204
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tekton/ci/custom-tasks/pr-commenter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
BIN = $(CURDIR)/.bin

GOLANGCI_VERSION = v1.50.1
GOLANGCI_VERSION = v1.52.2

GO = go
TIMEOUT_UNIT = 5m
Expand Down
2 changes: 1 addition & 1 deletion tekton/ci/custom-tasks/pr-commenter/tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/tektoncd/plumbing/tekton/ci/custom-tasks/pr-commenter/tools

go 1.18

require github.com/golangci/golangci-lint v1.50.1
require github.com/golangci/golangci-lint v1.52.2

require (
4d63.com/gochecknoglobals v0.1.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion tekton/ci/custom-tasks/pr-status-updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
BIN = $(CURDIR)/.bin

GOLANGCI_VERSION = v1.50.1
GOLANGCI_VERSION = v1.52.2

GO = go
TIMEOUT_UNIT = 5m
Expand Down
2 changes: 1 addition & 1 deletion tekton/ci/custom-tasks/pr-status-updater/tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/tektoncd/plumbing/tekton/ci/custom-tasks/pr-commenter/tools

go 1.18

require github.com/golangci/golangci-lint v1.50.1
require github.com/golangci/golangci-lint v1.52.2

require (
4d63.com/gochecknoglobals v0.1.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion tekton/images/test-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ RUN GO111MODULE="on" go install github.com/google/go-licenses@latest && \
GO111MODULE="on" go install sigs.k8s.io/kind@${KIND_VERSION}

# Install GolangCI linter: https://github.com/golangci/golangci-lint/
ARG GOLANGCI_VERSION=1.50.1
ARG GOLANGCI_VERSION=1.52.2
RUN curl -sL https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_VERSION}/golangci-lint-${GOLANGCI_VERSION}-linux-amd64.tar.gz | tar -C /usr/local/bin -xvzf - --strip-components=1 --wildcards "*/golangci-lint"

# Install Kustomize:
Expand Down

0 comments on commit 47ba204

Please sign in to comment.