Skip to content

Commit f468187

Browse files
Bump golang.org/x/tools from 0.8.0 to 0.9.1 (#348)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.8.0 to 0.9.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/golang/tools/releases">golang.org/x/tools's releases</a>.</em></p> <blockquote> <h2>gopls/v0.9.1</h2> <p>This release fixes a regression in the v0.9.0 release: a crash when running the <code>go:generate</code><code>golang/go#53781</code></p> <p>Thank you to all those who filed crash reports, and apologies for the breakage!</p> <h2>[email protected]</h2> <p>This release contains significant performance improvements (especially in incremental processing after source changes), bug fixes, and support for the LSP “<a href="https://redirect.github.com/microsoft/language-server-protocol/issues/956">inlay hints</a>” feature, along with several other minor enhancements.</p> <h2>Performance improvements</h2> <p>Source edits cause gopls to invalidate and recompute information about the workspace, most of which has not changed. Previously, gopls would spend significant CPU copying data structures, sometimes more than 100ms per keystroke in a large workspace. This release includes many optimizations to avoid copying data needlessly, including a new <a href="https://cs.opensource.google/go/x/tools/+/gopls-release-branch.0.9:internal/persistent/map.go;l=26-37">map representation</a> to achieve copying in constant time. Special thanks to <a href="https://github.com/euroelessar"><code>@​euroelessar</code></a> for the design and implementation of this data structure.</p> <p>As a result of these improvements, gopls should be more responsive while typing in large codebases, though it will still use a lot of memory.</p> <p>Time to process a change notification in the Kubernetes repo: <img src="https://user-images.githubusercontent.com/57144380/176967584-a8040048-6357-40d5-9d80-c448281f6482.png" alt="image" /></p> <h2>New Features</h2> <h3>Inlay hints</h3> <p>Added support for displaying inlay hints of composite literal field names and types, constant values, function parameter names, function type params, and short variable declarations. You can try these out in the <a href="https://github.com/golang/vscode-go/blob/master/docs/nightly.md">vscode-go nightly</a> by <a href="https://github.com/golang/vscode-go/blob/master/docs/settings.md#goinlayhintsassignvariabletypes">enabling inlay hints settings</a>.</p> <p><img src="https://user-images.githubusercontent.com/57144380/176967591-a7b767b3-d447-4691-9486-10f957dc9a0f.gif" alt="image3" /></p> <h3>Package References</h3> <p>Find references on <code>package foo</code> now lists locations where the given package is imported.</p> <h3>Quick-fix to add field names to struct literals</h3> <p>A new quick fix adds field names to struct literals with unkeyed fields.</p> <p><img src="https://user-images.githubusercontent.com/57144380/176967261-6acbe0e7-7698-46ea-8deb-cbd913296034.gif" alt="image1" /></p> <h2>Bug fixes</h2> <p>This release includes the following notable bugfixes:</p> <ul> <li>Fixes for goimports performance and correctness when using a go.work file (<a href="https://go.dev/issue/52784">#52784</a>)</li> <li>Fix a crash during renaming in a package that uses generics (<a href="https://go.dev/issue/52940">#52940</a>)</li> <li>Fix gopls getting confused when moving a file from the <code>foo_test</code> package to <code>foo</code> package (<a href="https://redirect.github.com/golang/go/issues/45317">#45317</a>)</li> </ul> <p>A full list of all issues fixed can be found in the <a href="https://github.com/golang/go/milestone/260">gopls/v0.9.0 milestone</a>. To report a new problem, please file a new issue at <a href="https://go.dev/issues/new">https://go.dev/issues/new</a>.</p> <h2>Thank you to our contributors!</h2> <p>Thank you for your contribution, <a href="https://github.com/alandonovan"><code>@​alandonovan</code></a>, <a href="https://github.com/euroelessar"><code>@​euroelessar</code></a>, <a href="https://github.com/findleyr"><code>@​findleyr</code></a>, <a href="https://github.com/hyangah"><code>@​hyangah</code></a>, <a href="https://github.com/jamalc"><code>@​jamalc</code></a>, <a href="https://github.com/jba"><code>@​jba</code></a>, <a href="https://github.com/marwan-at-work"><code>@​marwan-at-work</code></a>, <a href="https://github.com/suzmue"><code>@​suzmue</code></a>, and <a href="https://github.com/dle8"><code>@​dle8</code></a>!</p> <h2>What’s Next?</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/golang/tools/commit/4609d79b05b5ef86867bd70209b7077e22d30cb2"><code>4609d79</code></a> cmd/bisect: add -compile and -godebug shorthands</li> <li><a href="https://github.com/golang/tools/commit/ddfa2200ae0bde969aa31087e186187f4fa91da0"><code>ddfa220</code></a> internal/fuzzy: improvements to the symbol scoring algorithm</li> <li><a href="https://github.com/golang/tools/commit/344924276c19e46abf4b452856ebf4a49004f37b"><code>3449242</code></a> go/types/objectpath: don't panic when receiver is missing a method</li> <li><a href="https://github.com/golang/tools/commit/0809ec2e45f644b158912c8a2a5947fd3ec38373"><code>0809ec2</code></a> gopls/internal/lsp/source: document {All,Workspace}Metadata</li> <li><a href="https://github.com/golang/tools/commit/8f7fb01dd42992a819cb33b7532bf3d9b1a109be"><code>8f7fb01</code></a> go/analysis/unitchecker: add test of go vet on std</li> <li><a href="https://github.com/golang/tools/commit/23e52a3e12e9073cdc59ae714289d11dd3b9fb1c"><code>23e52a3</code></a> bisect: diagnose bad targets better</li> <li><a href="https://github.com/golang/tools/commit/d5af8894fe9036e6e97095f53ab3b213ff4d7935"><code>d5af889</code></a> gopls: set GOWORK=off for loads from debug and safetoken tests</li> <li><a href="https://github.com/golang/tools/commit/c93329a94714470b8e9b0a2ce2fc2ed526ec3d3d"><code>c93329a</code></a> go/analysis/passes/printf: reshorten diagnostic about %s in Println call</li> <li><a href="https://github.com/golang/tools/commit/62197261cfa31386d0264edd27256e59c8a998cf"><code>6219726</code></a> go.mod: update golang.org/x dependencies</li> <li><a href="https://github.com/golang/tools/commit/f4d143ebcdfc1b05588abf1b220f2b1773097d46"><code>f4d143e</code></a> go/ssa: cleanup TestGenericBodies to pickup package name</li> <li>Additional commits viewable in <a href="https://github.com/golang/tools/compare/v0.8.0...v0.9.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/tools&package-manager=go_modules&previous-version=0.8.0&new-version=0.9.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 57c51f6 commit f468187

File tree

11 files changed

+60
-20
lines changed

11 files changed

+60
-20
lines changed

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require (
1616
github.com/spf13/pflag v1.0.5
1717
github.com/spf13/viper v1.15.0
1818
github.com/stretchr/testify v1.8.2
19-
golang.org/x/tools v0.8.0
19+
golang.org/x/tools v0.9.1
2020
)
2121

2222
require (
@@ -50,9 +50,9 @@ require (
5050
github.com/subosito/gotenv v1.4.2 // indirect
5151
github.com/xanzy/ssh-agent v0.3.3 // indirect
5252
golang.org/x/crypto v0.6.0 // indirect
53-
golang.org/x/net v0.9.0 // indirect
53+
golang.org/x/net v0.10.0 // indirect
5454
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect
55-
golang.org/x/sys v0.7.0 // indirect
55+
golang.org/x/sys v0.8.0 // indirect
5656
golang.org/x/text v0.9.0 // indirect
5757
google.golang.org/appengine v1.6.7 // indirect
5858
google.golang.org/protobuf v1.28.1 // indirect

go.sum

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfS
352352
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
353353
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
354354
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
355-
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
356-
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
355+
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
356+
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
357357
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
358358
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
359359
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -424,14 +424,14 @@ golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBc
424424
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
425425
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
426426
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
427-
golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU=
428-
golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
427+
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
428+
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
429429
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
430430
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
431431
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
432432
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
433433
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
434-
golang.org/x/term v0.7.0 h1:BEvjmm5fURWqcfbSKTdpkDXYBrUS1c0m8agp14W48vQ=
434+
golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols=
435435
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
436436
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
437437
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -496,8 +496,8 @@ golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4f
496496
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
497497
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
498498
golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
499-
golang.org/x/tools v0.8.0 h1:vSDcovVPld282ceKgDimkRSC8kpaH1dgyc9UMzlt84Y=
500-
golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4=
499+
golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=
500+
golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
501501
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
502502
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
503503
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

vendor/golang.org/x/net/internal/socks/socks.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/mkerrors.sh

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

vendor/golang.org/x/sys/unix/zerrors_linux.go

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

vendor/golang.org/x/sys/windows/env_windows.go

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

vendor/golang.org/x/sys/windows/exec_windows.go

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

vendor/golang.org/x/sys/windows/service.go

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

vendor/golang.org/x/sys/windows/types_windows.go

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

vendor/golang.org/x/sys/windows/zsyscall_windows.go

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

vendor/modules.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ golang.org/x/crypto/ssh
251251
golang.org/x/crypto/ssh/agent
252252
golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
253253
golang.org/x/crypto/ssh/knownhosts
254-
# golang.org/x/net v0.9.0
254+
# golang.org/x/net v0.10.0
255255
## explicit; go 1.17
256256
golang.org/x/net/context
257257
golang.org/x/net/context/ctxhttp
@@ -261,7 +261,7 @@ golang.org/x/net/proxy
261261
## explicit; go 1.17
262262
golang.org/x/oauth2
263263
golang.org/x/oauth2/internal
264-
# golang.org/x/sys v0.7.0
264+
# golang.org/x/sys v0.8.0
265265
## explicit; go 1.17
266266
golang.org/x/sys/cpu
267267
golang.org/x/sys/execabs
@@ -273,7 +273,7 @@ golang.org/x/sys/windows
273273
golang.org/x/text/runes
274274
golang.org/x/text/transform
275275
golang.org/x/text/unicode/norm
276-
# golang.org/x/tools v0.8.0
276+
# golang.org/x/tools v0.9.1
277277
## explicit; go 1.18
278278
golang.org/x/tools/godoc/util
279279
golang.org/x/tools/godoc/vfs

0 commit comments

Comments
 (0)