Skip to content

Commit aa9b5f9

Browse files
dependabot[bot]polyfloyd
authored andcommitted
chore: bump golang.org/x/tools from 0.29.0 to 0.30.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.29.0 to 0.30.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](golang/tools@v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 5e9a019 commit aa9b5f9

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

errorlint/lint.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ func LintFmtErrorfCalls(fset *token.FileSet, info types.Info, multipleWraps bool
100100
Pos: arg.Pos(),
101101
}
102102
}
103+
fixMessage := "Use `%w` to format errors"
104+
if len(lint.SuggestedFixes) > 0 {
105+
fixMessage += fmt.Sprintf(" (%d)", len(lint.SuggestedFixes)+1)
106+
}
103107
lint.SuggestedFixes = append(lint.SuggestedFixes, analysis.SuggestedFix{
104-
Message: "Use `%w` to format errors",
108+
Message: fixMessage,
105109
TextEdits: []analysis.TextEdit{{
106110
Pos: strStart + token.Pos(verb.formatOffset) + 1,
107111
End: strStart + token.Pos(verb.formatOffset) + 2,

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module github.com/polyfloyd/go-errorlint
22

33
go 1.22.0
44

5-
require golang.org/x/tools v0.29.0
5+
require golang.org/x/tools v0.30.0
66

77
require (
8-
golang.org/x/mod v0.22.0 // indirect
9-
golang.org/x/sync v0.10.0 // indirect
8+
golang.org/x/mod v0.23.0 // indirect
9+
golang.org/x/sync v0.11.0 // indirect
1010
)

go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
22
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
3-
golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
4-
golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
5-
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
6-
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
7-
golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE=
8-
golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588=
3+
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
4+
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
5+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
6+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
7+
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
8+
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=

0 commit comments

Comments
 (0)