Skip to content

Commit d9d4b19

Browse files
build(deps): bump honnef.co/go/tools from 0.6.1 to 0.7.0 (#6367)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent ab19213 commit d9d4b19

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ require (
149149
golang.org/x/sync v0.19.0
150150
golang.org/x/sys v0.41.0
151151
golang.org/x/tools v0.42.0
152-
honnef.co/go/tools v0.6.1
152+
honnef.co/go/tools v0.7.0
153153
mvdan.cc/gofumpt v0.9.2
154154
mvdan.cc/unparam v0.0.0-20251027182757-5beb8c8f8f15
155155
)
@@ -227,7 +227,6 @@ require (
227227
go.uber.org/zap v1.27.0 // indirect
228228
golang.org/x/exp/typeparams v0.0.0-20260209203927-2842357ff358 // indirect
229229
golang.org/x/text v0.34.0 // indirect
230-
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
231230
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
232231
google.golang.org/protobuf v1.36.8 // indirect
233232
gopkg.in/ini.v1 v1.67.0 // indirect

go.sum

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

pkg/goanalysis/runner_action_cache.go

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,22 @@ func (act *action) loadPersistedFacts() bool {
9696

9797
for _, f := range facts {
9898
if f.Path == "" { // this is a package fact
99-
key := packageFactKey{act.Package.Types, act.factType(f.Fact)}
99+
key := packageFactKey{pkg: act.Package.Types, typ: act.factType(f.Fact)}
100100
act.packageFacts[key] = f.Fact
101101
continue
102102
}
103103
obj, err := objectpath.Object(act.Package.Types, objectpath.Path(f.Path))
104104
if err != nil {
105-
// Be lenient about these errors. For example, when
106-
// analyzing io/ioutil from source, we may get a fact
107-
// for methods on the devNull type, and objectpath
108-
// will happily create a path for them. However, when
109-
// we later load io/ioutil from export data, the path
110-
// no longer resolves.
105+
// Be lenient about these errors.
106+
// For example, when analyzing io/ioutil from source,
107+
// we may get a fact for methods on the devNull type,
108+
// and objectpath will happily create a path for them.
109+
// However,
110+
// when we later load io/ioutil from export data,
111+
// the path no longer resolves.
111112
//
112113
// If an exported type embeds the unexported type,
113-
// then (part of) the unexported type will become part
114-
// of the type information and our path will resolve
115-
// again.
114+
// then (part of) the unexported type will become part of the type information and our path will resolve again.
116115
continue
117116
}
118117
factKey := objectFactKey{obj, act.factType(f.Fact)}

test/testshared/runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ func (r *Runner) Command() *exec.Cmd {
266266
//nolint:gosec // we don't use user input here
267267
cmd := exec.CommandContext(r.tb.Context(), r.binPath, runArgs...)
268268
cmd.Env = append(os.Environ(), r.env...)
269+
cmd.Env = append(cmd.Env, "GOLANGCI_LINT_CACHE="+r.tb.TempDir())
269270

270271
return cmd
271272
}

0 commit comments

Comments
 (0)