From 37e7140412958f0c490b6d418f1a164be051bc92 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 09:48:19 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/sonatard/noctx from 0.3.3 to 0.3.4 Bumps [github.com/sonatard/noctx](https://github.com/sonatard/noctx) from 0.3.3 to 0.3.4. - [Release notes](https://github.com/sonatard/noctx/releases) - [Changelog](https://github.com/sonatard/noctx/blob/master/.goreleaser.yml) - [Commits](https://github.com/sonatard/noctx/compare/v0.3.3...v0.3.4) --- updated-dependencies: - dependency-name: github.com/sonatard/noctx dependency-version: 0.3.4 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 c8179f4e39ce..ef62abf3ad54 100644 --- a/go.mod +++ b/go.mod @@ -103,7 +103,7 @@ require ( github.com/shirou/gopsutil/v4 v4.25.5 github.com/sirupsen/logrus v1.9.3 github.com/sivchari/containedctx v1.0.3 - github.com/sonatard/noctx v0.3.3 + github.com/sonatard/noctx v0.3.4 github.com/sourcegraph/go-diff v0.7.0 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.6 diff --git a/go.sum b/go.sum index 53dd9ec4ac9b..b92fdfee4b85 100644 --- a/go.sum +++ b/go.sum @@ -533,8 +533,8 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= -github.com/sonatard/noctx v0.3.3 h1:9+wFUxZfjiCdNadFaGH55sa7Y1r6yKZiAsUVmCP+tjw= -github.com/sonatard/noctx v0.3.3/go.mod h1:64XdbzFb18XL4LporKXp8poqZtPKbCrqQ402CV+kJas= +github.com/sonatard/noctx v0.3.4 h1:ZeiM4rEeFTFSie/G5/HD9lHiMpQg/L4fnilaNmFQ2/A= +github.com/sonatard/noctx v0.3.4/go.mod h1:64XdbzFb18XL4LporKXp8poqZtPKbCrqQ402CV+kJas= github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA= From 27bfac5ce0bb077546f8b1dbad7f6a850f4cabfa Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 25 Jun 2025 12:57:11 +0200 Subject: [PATCH 2/2] chore: update implementation --- pkg/golinters/noctx/testdata/noctx.go | 2 +- pkg/golinters/noctx/testdata/noctx_cgo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/golinters/noctx/testdata/noctx.go b/pkg/golinters/noctx/testdata/noctx.go index 8a34443e2029..891fc6a9cd93 100644 --- a/pkg/golinters/noctx/testdata/noctx.go +++ b/pkg/golinters/noctx/testdata/noctx.go @@ -167,7 +167,7 @@ func _() { // transactions - tx, _ := db.Begin() + tx, _ := db.Begin() // want `\(\*database/sql\.DB\)\.Begin must not be called. use \(\*database/sql\.DB\)\.BeginTx` tx.Exec("select * from testdata") // want `\(\*database/sql\.Tx\)\.Exec must not be called. use \(\*database/sql\.Tx\)\.ExecContext` tx.ExecContext(ctx, "select * from testdata") diff --git a/pkg/golinters/noctx/testdata/noctx_cgo.go b/pkg/golinters/noctx/testdata/noctx_cgo.go index 63b15477d8c3..7ef8c4952721 100644 --- a/pkg/golinters/noctx/testdata/noctx_cgo.go +++ b/pkg/golinters/noctx/testdata/noctx_cgo.go @@ -184,7 +184,7 @@ func _() { // transactions - tx, _ := db.Begin() + tx, _ := db.Begin() // want `\(\*database/sql\.DB\)\.Begin must not be called. use \(\*database/sql\.DB\)\.BeginTx` tx.Exec("select * from testdata") // want `\(\*database/sql\.Tx\)\.Exec must not be called. use \(\*database/sql\.Tx\)\.ExecContext` tx.ExecContext(ctx, "select * from testdata")