From 732c57036a0252a3eabcf8b905aa7ece77551ede Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Wed, 14 Aug 2024 14:46:06 -0400 Subject: [PATCH] chore: bump golangci-lint version for Go 1.23 Signed-off-by: Donnie Adams --- .golangci.yaml | 3 ++- Makefile | 2 +- run.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 62d0b9e..03be8a7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,7 +2,8 @@ run: timeout: 5m output: - format: github-actions + formats: + - format: colored-line-number linters: disable-all: true diff --git a/Makefile b/Makefile index 701a2fc..ecb61c5 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ tidy: test: go test -v ./... -GOLANGCI_LINT_VERSION ?= v1.56.1 +GOLANGCI_LINT_VERSION ?= v1.60.1 lint: if ! command -v golangci-lint &> /dev/null; then \ echo "Could not find golangci-lint, installing version $(GOLANGCI_LINT_VERSION)."; \ diff --git a/run.go b/run.go index 6e6c5fd..5b716aa 100644 --- a/run.go +++ b/run.go @@ -371,7 +371,7 @@ func (r *Run) request(ctx context.Context, payload any) (err error) { r.callsLock.Unlock() } else if event.Run.Type == EventTypeRunFinish && event.Run.Error != "" { r.state = Error - r.err = fmt.Errorf(event.Run.Error) + r.err = fmt.Errorf("%s", event.Run.Error) } }