From 713a72e034887b9836bceba396b8aff9f2a487fc Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 5 Dec 2023 15:25:37 +0100 Subject: [PATCH] chore: bump backoff to v4 (#77) --- .golangci.yml | 5 ++++- go.mod | 2 +- go.sum | 4 ++-- plugin/impl.go | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index fbcaa85..4af9941 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -96,5 +96,8 @@ linters-settings: extra-rules: true ireturn: allow: + - anon - error - - backoff.BackOff + - empty + - stdlib + - ^github\.com\/cenkalti\/backoff\/\S+\.BackOff$ diff --git a/go.mod b/go.mod index 67da5ae..cff6981 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/thegeeklab/wp-docker-buildx go 1.21 require ( - github.com/cenkalti/backoff v2.2.1+incompatible + github.com/cenkalti/backoff/v4 v4.2.1 github.com/rs/zerolog v1.31.0 github.com/thegeeklab/wp-plugin-go v1.1.0 github.com/urfave/cli/v2 v2.26.0 diff --git a/go.sum b/go.sum index df7b9a4..f7bffb7 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= +github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= diff --git a/plugin/impl.go b/plugin/impl.go index f5d9d78..73e916a 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -8,7 +8,7 @@ import ( "path/filepath" "time" - "github.com/cenkalti/backoff" + "github.com/cenkalti/backoff/v4" "github.com/rs/zerolog/log" "github.com/thegeeklab/wp-plugin-go/tag" "github.com/thegeeklab/wp-plugin-go/types"