From ed4b3a9875e0fa4e0843f7b20755bb426a701ce9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 13:47:14 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.1 to 1.5.2 Bumps [github.com/polyfloyd/go-errorlint](https://github.com/polyfloyd/go-errorlint) from 1.5.1 to 1.5.2. - [Changelog](https://github.com/polyfloyd/go-errorlint/blob/main/CHANGELOG.md) - [Commits](https://github.com/polyfloyd/go-errorlint/compare/v1.5.1...v1.5.2) --- updated-dependencies: - dependency-name: github.com/polyfloyd/go-errorlint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8d3337a05fe9..49974f816327 100644 --- a/go.mod +++ b/go.mod @@ -84,7 +84,7 @@ require ( github.com/nishanths/predeclared v0.2.2 github.com/nunnatsa/ginkgolinter v0.16.2 github.com/pelletier/go-toml/v2 v2.2.2 - github.com/polyfloyd/go-errorlint v1.5.1 + github.com/polyfloyd/go-errorlint v1.5.2 github.com/quasilyte/go-ruleguard/dsl v0.3.22 github.com/ryancurrah/gomodguard v1.3.2 github.com/ryanrolds/sqlclosecheck v0.5.1 diff --git a/go.sum b/go.sum index 3c114c58ba58..f5ae29d70977 100644 --- a/go.sum +++ b/go.sum @@ -424,8 +424,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v1.5.1 h1:5gHxDjLyyWij7fhfrjYNNlHsUNQeyx0LFQKUelO3RBo= -github.com/polyfloyd/go-errorlint v1.5.1/go.mod h1:sH1QC1pxxi0fFecsVIzBmxtrgd9IF/SkJpA6wqyKAJs= +github.com/polyfloyd/go-errorlint v1.5.2 h1:SJhVik3Umsjh7mte1vE0fVZ5T1gznasQG3PV7U5xFdA= +github.com/polyfloyd/go-errorlint v1.5.2/go.mod h1:sH1QC1pxxi0fFecsVIzBmxtrgd9IF/SkJpA6wqyKAJs= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= From fed313ab066160f077dddcd095f21232f2f190a9 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 1 Jun 2024 16:02:08 +0200 Subject: [PATCH 2/2] chore: update tests --- pkg/golinters/errorlint/testdata/errorlint_comparison.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/golinters/errorlint/testdata/errorlint_comparison.go b/pkg/golinters/errorlint/testdata/errorlint_comparison.go index 7e0e31136734..f8275f2a588a 100644 --- a/pkg/golinters/errorlint/testdata/errorlint_comparison.go +++ b/pkg/golinters/errorlint/testdata/errorlint_comparison.go @@ -42,12 +42,12 @@ func errorLintComparison() { if errCompare != err { // want "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error" log.Println("not errCompare") } - switch err { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors" - case errCompare: + switch err { + case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors" log.Println("errCompare") } - switch errorLintDoThing() { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors" - case errCompare: + switch errorLintDoThing() { + case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors" log.Println("errCompare") } }