Bump golang.org/x/tools from 0.3.0 to 0.4.0 #65

Closed
dependabot[bot] wants to merge 1 commits from dependabot/go_modules/golang.org/x/tools-0.4.0 into v3
dependabot[bot] commented 2022-12-07 18:04:21 +03:00 (Migrated from github.com)

Bumps golang.org/x/tools from 0.3.0 to 0.4.0.

Release notes

Sourced from golang.org/x/tools's releases.

gopls/v0.4.0

  • Improved support for working with modules (@​ridersofrohan). A detailed walk-through of the new features can be found here. A quick summary:
    • Use the -modfile flag to suggest which modules should be added/removed from the go.mod file, rather than editing it automatically.
    • Suggest dependency upgrades in-editor and provide additional language features, such as formatting, for the go.mod file.
  • Inverse implementations (@​muirdm). "Go to implementations" on a concrete type will show the interfaces it implements.
  • Completion improvements (@​muirdm). Specifically, improved completion for keywords. Also, offer if err != nil { return err } as a completion item.
  • Jumping to definition on an import statement returns all files as definition locations (@​danishprakash).
  • Support for running go generate through the editor, via a code lens (@​marwan-at-work).
  • Command-line support for workspace symbols (@​daisuzu).

Opt-in:

  • Code actions suggesting gofmt -s-style simplifications (@​ridersofrohan). To get these on-save, add the following setting:
"[go]": {
	"editor.codeActionsOnSave": {
		"source.fixAll": true,
	}
}
  • Code actions suggesting fixes for type errors, such as missing return values (goreturns-style), undeclared names, unused parameters, and assignment statements that should be converted from := to = (@​ridersofrohan). Add the following to your gopls settings to opt-in to these analyzers. In the future, they will be on by default and high-confidence suggested fixes may be applied on save. See additional documentation on analyzers here.
"gopls": {
	"analyses": {
		"fillreturns": true,
                "undeclaredname": true,
                "unusedparams": true,
                "nonewvars": true,
	}
}
  • Further improvements in the support for multiple concurrent clients (@​findleyr). See #34111 for all details.

For a complete list of the issues resolved, see the gopls/v0.4.0 milestone.

gopls/v0.3.4

gopls/v0.3.3

  • Support for workspace symbols. (@​daisuzu)
  • Various completion improvements, including fixes for completion in code that doesn't parse. (@​muirdm)
  • Limit diagnostic concurrency, preventing huge spikes in memory usage that some users encountered. (@​heschik)
  • Improved handling for URIs containing escaped characters. (@​heschik)
  • Module versions from "go list" in pkg.go.dev links. (@​ridersofrohan)

... (truncated)

Commits
  • aee3994 gopls/internal/lsp/fake: in (*Workdir).RenameFile, fall back to read + write
  • fe60148 go.mod: update golang.org/x dependencies
  • c9ea9a7 gopls/internal/regtest: add a test for the case when the renaming package's p...
  • bf5db81 gopls/internal/lsp/cache: improve ad-hoc warning for nested modules
  • aa9f4b2 go/analysis: document that facts are gob encoded in one gulp
  • bdcd082 internal/gcimporter: skip tests earlier when 'go build' is not available
  • 2ad6325 gopls/internal/lsp/cache: expand ImportPath!=PackagePath comment
  • 52c7b88 gopls/internal/robustio: only define ERROR_SHARING_VIOLATION on Windows
  • 4f69bf3 gopls/internal/lsp/cache: narrow reloadOrphanedFiles to open files
  • 6002d6e gopls/internal/regtest/misc: test Implementations + vendor
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.3.0 to 0.4.0. <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.4.0</h2> <ul> <li>Improved support for working with modules (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). A detailed walk-through of the new features can be found <a href="https://www.ardanlabs.com/blog/2020/04/modules-05-gopls-improvements.html">here</a>. A quick summary: <ul> <li>Use the <code>-modfile</code> flag to suggest which modules should be added/removed from the <code>go.mod</code> file, rather than editing it automatically.</li> <li>Suggest dependency upgrades in-editor and provide additional language features, such as formatting, for the <code>go.mod</code> file.</li> </ul> </li> <li>Inverse implementations (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>). &quot;Go to implementations&quot; on a concrete type will show the interfaces it implements.</li> <li>Completion improvements (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>). Specifically, improved completion for keywords. Also, offer <code>if err != nil { return err }</code> as a completion item.</li> <li>Jumping to definition on an import statement returns all files as definition locations (<a href="https://github.com/danishprakash"><code>@​danishprakash</code></a>).</li> <li>Support for running <code>go generate</code> through the editor, via a code lens (<a href="https://github.com/marwan-at-work"><code>@​marwan-at-work</code></a>).</li> <li>Command-line support for workspace symbols (<a href="https://github.com/daisuzu"><code>@​daisuzu</code></a>).</li> </ul> <h4>Opt-in:</h4> <ul> <li>Code actions suggesting <code>gofmt -s</code>-style simplifications (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). To get these on-save, add the following setting:</li> </ul> <pre lang="js"><code>&quot;[go]&quot;: { &quot;editor.codeActionsOnSave&quot;: { &quot;source.fixAll&quot;: true, } } </code></pre> <ul> <li>Code actions suggesting fixes for type errors, such as missing return values (<a href="https://github.com/sqs/goreturns">goreturns</a>-style), undeclared names, unused parameters, and assignment statements that should be converted from <code>:=</code> to <code>=</code> (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>). Add the following to your gopls settings to opt-in to these analyzers. In the future, they will be on by default and high-confidence suggested fixes may be applied on save. See additional documentation on analyzers <a href="https://cs.opensource.google/go/tools/+/master:gopls/doc/analyzers.md">here</a>.</li> </ul> <pre lang="json5"><code>&quot;gopls&quot;: { &quot;analyses&quot;: { &quot;fillreturns&quot;: true, &quot;undeclaredname&quot;: true, &quot;unusedparams&quot;: true, &quot;nonewvars&quot;: true, } } </code></pre> <ul> <li>Further improvements in the support for multiple concurrent clients (<a href="https://github.com/findleyr"><code>@​findleyr</code></a>). See <a href="https://github-redirect.dependabot.com/golang/tools/issues/34111">#34111</a> for all details.</li> </ul> <p>For a complete list of the issues resolved, see the <a href="https://github.com/golang/go/milestone/133?closed=1">gopls/v0.4.0 milestone</a>.</p> <h2>gopls/v0.3.4</h2> <ul> <li><a href="https://golang.org/cl/222979">golang.org/cl/222979</a>: fix for a nil pointer exception in completion (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>).</li> <li><a href="https://golang.org/cl/222980">golang.org/cl/222980</a>: fix a concurrent map write and iteration (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>).</li> </ul> <h2>gopls/v0.3.3</h2> <ul> <li>Support for workspace symbols. (<a href="https://github.com/daisuzu"><code>@​daisuzu</code></a>)</li> <li>Various completion improvements, including fixes for completion in code that doesn't parse. (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>)</li> <li>Limit diagnostic concurrency, preventing huge spikes in memory usage that some users encountered. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li> <li>Improved handling for URIs containing escaped characters. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li> <li>Module versions from &quot;go list&quot; in pkg.go.dev links. (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/golang/tools/commit/aee3994bd5f840a71b7b3fd8ce9fa21176e0a9e1"><code>aee3994</code></a> gopls/internal/lsp/fake: in (*Workdir).RenameFile, fall back to read + write</li> <li><a href="https://github.com/golang/tools/commit/fe60148df7654055de5513e31850d131fd91c1a5"><code>fe60148</code></a> go.mod: update golang.org/x dependencies</li> <li><a href="https://github.com/golang/tools/commit/c9ea9a72c54987217e6af00e7a6a29f26a316d0a"><code>c9ea9a7</code></a> gopls/internal/regtest: add a test for the case when the renaming package's p...</li> <li><a href="https://github.com/golang/tools/commit/bf5db8100143206bf73fe78418bfb95467b4753e"><code>bf5db81</code></a> gopls/internal/lsp/cache: improve ad-hoc warning for nested modules</li> <li><a href="https://github.com/golang/tools/commit/aa9f4b2f3d575daef809d1fc76c01a33b13e7bce"><code>aa9f4b2</code></a> go/analysis: document that facts are gob encoded in one gulp</li> <li><a href="https://github.com/golang/tools/commit/bdcd08225250423bf7f5f70d1dad7b2f96c380f0"><code>bdcd082</code></a> internal/gcimporter: skip tests earlier when 'go build' is not available</li> <li><a href="https://github.com/golang/tools/commit/2ad6325d9080398a9a71b69effd71191c00838b4"><code>2ad6325</code></a> gopls/internal/lsp/cache: expand ImportPath!=PackagePath comment</li> <li><a href="https://github.com/golang/tools/commit/52c7b88fe89b3ef23d2641bca2f18b6ec5882720"><code>52c7b88</code></a> gopls/internal/robustio: only define ERROR_SHARING_VIOLATION on Windows</li> <li><a href="https://github.com/golang/tools/commit/4f69bf3eb3beddcf2b4b1ae17855da12b1c1013a"><code>4f69bf3</code></a> gopls/internal/lsp/cache: narrow reloadOrphanedFiles to open files</li> <li><a href="https://github.com/golang/tools/commit/6002d6ea51c0b879256e7822030f9ad18c9e4a7f"><code>6002d6e</code></a> gopls/internal/regtest/misc: test Implementations + vendor</li> <li>Additional commits viewable in <a href="https://github.com/golang/tools/compare/v0.3.0...v0.4.0">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.3.0&new-version=0.4.0)](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>
github-actions[bot] (Migrated from github.com) approved these changes 2022-12-07 18:04:39 +03:00
dependabot[bot] commented 2023-01-05 18:11:52 +03:00 (Migrated from github.com)

Superseded by #66.

Superseded by #66.

Pull request closed

Sign in to join this conversation.
No description provided.