Skip to content

Commit af428ae

Browse files
committed
chore: update dependencies
1 parent 9835820 commit af428ae

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ldez/gomoddirectives
33
go 1.22.0
44

55
require (
6-
github.com/ldez/grignotin v0.8.0
6+
github.com/ldez/grignotin v0.9.0
77
github.com/stretchr/testify v1.10.0
88
golang.org/x/mod v0.22.0
99
golang.org/x/tools v0.28.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/ldez/grignotin v0.8.0 h1:M9QeBN2qyPrqwqx+RhG7W2xKjyV7dRWKjNghbz7fkM0=
4-
github.com/ldez/grignotin v0.8.0/go.mod h1:uaVTr0SoZ1KBii33c47O1M8Jp3OP3YDwhZCmzT9GHEk=
3+
github.com/ldez/grignotin v0.9.0 h1:MgOEmjZIVNn6p5wPaGp/0OKWyvq42KnzAt/DAb8O4Ow=
4+
github.com/ldez/grignotin v0.9.0/go.mod h1:uaVTr0SoZ1KBii33c47O1M8Jp3OP3YDwhZCmzT9GHEk=
55
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
66
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
77
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=

gomoddirectives.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package gomoddirectives
33

44
import (
5+
"context"
56
"fmt"
67
"go/token"
78
"regexp"
@@ -61,7 +62,7 @@ type Options struct {
6162

6263
// AnalyzePass analyzes a pass.
6364
func AnalyzePass(pass *analysis.Pass, opts Options) ([]Result, error) {
64-
info, err := gomod.GetModuleInfo()
65+
info, err := gomod.GetModuleInfo(context.Background())
6566
if err != nil {
6667
return nil, fmt.Errorf("get information about modules: %w", err)
6768
}

module.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package gomoddirectives
22

33
import (
4+
"context"
45
"fmt"
56
"os"
67
"path/filepath"
@@ -11,7 +12,7 @@ import (
1112

1213
// GetModuleFile gets module file.
1314
func GetModuleFile() (*modfile.File, error) {
14-
goMod, err := goenv.GetOne(goenv.GOMOD)
15+
goMod, err := goenv.GetOne(context.Background(), goenv.GOMOD)
1516
if err != nil {
1617
return nil, err
1718
}

0 commit comments

Comments
 (0)