Skip to content

Commit d40b6da

Browse files
build(deps): bump github.com/ldez/gomoddirectives from 0.2.4 to 0.4.2 (#5175)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent a92ccc7 commit d40b6da

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ require (
6666
github.com/kunwardeep/paralleltest v1.0.10
6767
github.com/kyoh86/exportloopref v0.1.11
6868
github.com/lasiar/canonicalheader v1.1.2
69-
github.com/ldez/gomoddirectives v0.2.4
69+
github.com/ldez/gomoddirectives v0.4.2
7070
github.com/ldez/tagliatelle v0.6.0
7171
github.com/ldez/usetesting v0.2.0
7272
github.com/leonklingele/grouper v1.1.2
@@ -164,6 +164,7 @@ require (
164164
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
165165
github.com/hashicorp/hcl v1.0.0 // indirect
166166
github.com/inconshreveable/mousetrap v1.1.0 // indirect
167+
github.com/ldez/grignotin v0.6.0 // indirect
167168
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
168169
github.com/magiconair/properties v1.8.6 // indirect
169170
github.com/mattn/go-isatty v0.0.20 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/gomoddirectives/gomoddirectives.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
4040
).WithContextSetter(func(lintCtx *linter.Context) {
4141
analyzer.Run = func(pass *analysis.Pass) (any, error) {
4242
once.Do(func() {
43-
results, err := gomoddirectives.Analyze(opts)
43+
results, err := gomoddirectives.AnalyzePass(pass, opts)
4444
if err != nil {
4545
lintCtx.Log.Warnf("running %s failed: %s: "+
4646
"if you are not using go modules it is suggested to disable this linter", linterName, err)

0 commit comments

Comments
 (0)