Bump golang.org/x/tools from 0.1.12 to 0.3.0 #61

Merged
dependabot[bot] merged 1 commits from dependabot/go_modules/golang.org/x/tools-0.3.0 into v3 2022-11-12 18:20:29 +03:00
dependabot[bot] commented 2022-11-11 18:09:10 +03:00 (Migrated from github.com)

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

Release notes

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

gopls/v0.3.0

Note: gopls now loads your entire workspace, where “workspace” is directory you opened in your editor.

In module mode, you must open your module root (directory containing the go.mod file) or a subdirectory.

In GOPATH mode, you must open your GOPATH/src or a directory within it. If you have a large GOPATH and you open your GOPATH as your workspace root, gopls may be very slow to load. Please see #36899 for further information.

  • Autocompletion from unimported packages is on by default. You will get completions for something like fmt.Printf even if “fmt” isn’t imported yet. (@​heschik)
  • Workspace-scoped references, rename, and go to implementation. These features use your workspace root as the search scope, so behavior will vary based on the directory you open in your editor. This may result in unexpected behavior. (@​muirdm, @​matloob)
  • Workspace-wide diagnostics. You will now see errors in your entire workspace, rather than just in your currently open files. Analysis errors will only be shown for packages with currently open files.
  • Watch file changes on disk. This allows users to switch branches without reloading their editors. Also, changing configurations no longer requires an editor reload.
  • GOPATH vendoring is fully supported. Previously, some features would ignore vendor directories, causing errors if packages weren't in GOPATH. (@​heschik)
  • New autocompletion suggestions for type conversions. Improved completions for literal candidates and variadic functions. Better rankings, including rankings for builtin functions and keywords. (@​muirdm)
  • Highlighting improvements: Highlighting now applies not only to variables, but also to fields, methods, types, and imports. Additional highlighting helps visualize control flow in loops and functions. Highlighting of single character variables has better support. (@​ridersofrohan)
  • Documentation on hover includes links to pkg.go.dev for exported symbols. (@​Southclaws)
  • Improved support for cgo dependencies. All features now work for packages that have cgo dependencies. Authoring cgo packages is still not supported, but improvements are scheduled for Go 1.15 (see #35721). (@​heschik)
  • Deep completions are now on by default. This feature of completion will search the fields and methods of all available candidates to see if there are any more candidates with the expected type. As an example, say you have imported the context package and are calling a function that takes a context.Context as a parameter. In the case that you don’t have a variable of that type in scope, deep completions will suggest context.Background() and context.TODO(). (@​muirdm)

Opt-in:

  • staticcheck analyses remain opt-in and can be enabled by setting "staticcheck": true in your gopls settings.
  • Go 1.14 will support running the go command without modifying the user’s go.mod file. This new feature is used in gopls to show diagnostics and suggest edits in a user’s go.mod file rather than change the file without the user noticing. Currently, gopls will suggest removing unused dependencies and warn the user if there is a parse error in the go.mod file. Enable this behavior by using the go1.14 beta and setting "tempModfile": true in your gopls settings. (@​ridersofrohan)

gopls/v0.2.2

  • Fix concurrent map read and write when a file is created (CL 210199).
  • Fix issue that caused errors to show up when a new file was created (CL 209978).

gopls/v0.2.1

  • Fix for parse errors showing up as errors on the whole package (CL 206597).

gopls/v0.2.0

  • Many improvements to autocompletion. In particular, support for completions of array, slice, map, and function literals (@​muirdm).
  • A new diff algorithm (github.com/sergi/go-diff) that improves handling of line endings on different operating systems (@​ianthehat).
  • Improved caching and memory usage (@​stamblerre).
  • Command-line support for links, suggested fixes, and imports (@​kalmanb).
  • Command-line support for references, signature, and symbols (@​rentziass).
  • Command-line support for rename (@​hartzell).

Opt-in:

  • Get diagnostics from staticcheck by configuring "staticcheck": true in your gopls settings (@​ianthehat).
  • Get autocompletion of unimported packages and symbols by configuring "completeUnimported": true in your gopls settings (@​heschik).
Commits
  • 502c634 go.mod: update golang.org/x dependencies
  • bd04e32 internal/jsonrpc2_v2: eliminate a potential Accept/Dial race in TestIdleTimeout
  • d41a43b internal/jsonrpc2_v2: fix a potential deadlock when (*Conn).Close is invoked ...
  • 3057465 gopls/doc: Add plugin for Lapce to gopls documentation
  • ba92ae1 internal/persistent: avoid incorrect map validation due to multiple keys
  • 9474ca3 gopls/doc: clarify go work use
  • 003fde1 internal/gcimporter: use nondeprecated go/packages mode bits
  • 5050657 gopls/fake: add semantic token modifiers to fake editor
  • 88a3548 gopls/coverage: repair coverage.go
  • 8e0240a internal/regtest/workspace: permanently skip TestDeleteModule_Interdependent
  • 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.1.12 to 0.3.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.3.0</h2> <h4>Note: <code>gopls</code> now loads your entire workspace, where “workspace” is directory you opened in your editor.</h4> <h4>In module mode, you must open your module root (directory containing the <code>go.mod</code> file) or a subdirectory.</h4> <h4>In <code>GOPATH</code> mode, you must open your <code>GOPATH/src</code> or a directory within it. If you have a large <code>GOPATH</code> and you open your <code>GOPATH</code> as your workspace root, <code>gopls</code> may be very slow to load. Please see <a href="https://github-redirect.dependabot.com/golang/tools/issues/36899">#36899</a> for further information.</h4> <ul> <li>Autocompletion from unimported packages is on by default. You will get completions for something like <code>fmt.Printf</code> even if <code>“fmt”</code> isn’t imported yet. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li> <li>Workspace-scoped references, rename, and go to implementation. These features use your workspace root as the search scope, so behavior will vary based on the directory you open in your editor. This may result in unexpected behavior. (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>, <a href="https://github.com/matloob"><code>@​matloob</code></a>)</li> <li>Workspace-wide diagnostics. You will now see errors in your entire workspace, rather than just in your currently open files. Analysis errors will only be shown for packages with currently open files.</li> <li>Watch file changes on disk. This allows users to switch branches without reloading their editors. Also, changing configurations no longer requires an editor reload.</li> <li>GOPATH vendoring is fully supported. Previously, some features would ignore vendor directories, causing errors if packages weren't in GOPATH. (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li> <li>New autocompletion suggestions for type conversions. Improved completions for literal candidates and variadic functions. Better rankings, including rankings for builtin functions and keywords. (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>)</li> <li>Highlighting improvements: Highlighting now applies not only to variables, but also to fields, methods, types, and imports. Additional highlighting helps visualize control flow in loops and functions. Highlighting of single character variables has better support. (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>)</li> <li>Documentation on hover includes links to <a href="https://pkg.go.dev">pkg.go.dev</a> for exported symbols. (<a href="https://github.com/Southclaws"><code>@​Southclaws</code></a>)</li> <li>Improved support for cgo dependencies. All features now work for packages that have cgo dependencies. Authoring cgo packages is still not supported, but improvements are scheduled for Go 1.15 (see <a href="https://github-redirect.dependabot.com/golang/tools/issues/35721">#35721</a>). (<a href="https://github.com/heschik"><code>@​heschik</code></a>)</li> <li>Deep completions are now on by default. This feature of completion will search the fields and methods of all available candidates to see if there are any more candidates with the expected type. As an example, say you have imported the <code>context</code> package and are calling a function that takes a <code>context.Context</code> as a parameter. In the case that you don’t have a variable of that type in scope, deep completions will suggest <code>context.Background()</code> and <code>context.TODO()</code>. (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>)</li> </ul> <p>Opt-in:</p> <ul> <li>staticcheck analyses remain opt-in and can be enabled by setting <code>&quot;staticcheck&quot;: true</code> in your <code>gopls</code> settings.</li> <li>Go 1.14 will support running the go command without modifying the user’s <code>go.mod</code> file. This new feature is used in <code>gopls</code> to show diagnostics and suggest edits in a user’s <code>go.mod</code> file rather than change the file without the user noticing. Currently, <code>gopls</code> will suggest removing unused dependencies and warn the user if there is a parse error in the <code>go.mod</code> file. Enable this behavior by using the go1.14 beta and setting <code>&quot;tempModfile&quot;: true</code> in your <code>gopls</code> settings. (<a href="https://github.com/ridersofrohan"><code>@​ridersofrohan</code></a>)</li> </ul> <h2>gopls/v0.2.2</h2> <ul> <li>Fix concurrent map read and write when a file is created (<a href="https://go-review.googlesource.com/c/tools/+/210199">CL 210199</a>).</li> <li>Fix issue that caused errors to show up when a new file was created (<a href="https://go-review.googlesource.com/c/tools/+/209978">CL 209978</a>).</li> </ul> <h2>gopls/v0.2.1</h2> <ul> <li>Fix for parse errors showing up as errors on the whole package (<a href="https://go-review.googlesource.com/c/tools/+/206597">CL 206597</a>).</li> </ul> <h2>gopls/v0.2.0</h2> <ul> <li>Many improvements to autocompletion. In particular, support for completions of array, slice, map, and function literals (<a href="https://github.com/muirdm"><code>@​muirdm</code></a>).</li> <li>A new diff algorithm (<a href="https://github.com/sergi/go-diff">github.com/sergi/go-diff</a>) that improves handling of line endings on different operating systems (<a href="https://github.com/ianthehat"><code>@​ianthehat</code></a>).</li> <li>Improved caching and memory usage (<a href="https://github.com/stamblerre"><code>@​stamblerre</code></a>).</li> <li>Command-line support for links, suggested fixes, and imports (<a href="https://github.com/kalmanb"><code>@​kalmanb</code></a>).</li> <li>Command-line support for references, signature, and symbols (<a href="https://github.com/rentziass"><code>@​rentziass</code></a>).</li> <li>Command-line support for rename (<a href="https://github.com/hartzell"><code>@​hartzell</code></a>).</li> </ul> <h3>Opt-in:</h3> <ul> <li>Get diagnostics from <a href="https://staticcheck.io/">staticcheck</a> by configuring <code>&quot;staticcheck&quot;: true</code> in your gopls settings (<a href="https://github.com/ianthehat"><code>@​ianthehat</code></a>).</li> <li>Get autocompletion of unimported packages and symbols by configuring <code>&quot;completeUnimported&quot;: true</code> in your gopls settings (<a href="https://github.com/heschik"><code>@​heschik</code></a>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/golang/tools/commit/502c634771c4ba335286d55fc24eeded1704f592"><code>502c634</code></a> go.mod: update golang.org/x dependencies</li> <li><a href="https://github.com/golang/tools/commit/bd04e329aedbea5310658e5d1afbfba4ce700178"><code>bd04e32</code></a> internal/jsonrpc2_v2: eliminate a potential Accept/Dial race in TestIdleTimeout</li> <li><a href="https://github.com/golang/tools/commit/d41a43b94f2f49adda95493f62c78f57ba91eeec"><code>d41a43b</code></a> internal/jsonrpc2_v2: fix a potential deadlock when (*Conn).Close is invoked ...</li> <li><a href="https://github.com/golang/tools/commit/30574650371be0d7cb887e380ab16905d86cc7cc"><code>3057465</code></a> gopls/doc: Add plugin for Lapce to gopls documentation</li> <li><a href="https://github.com/golang/tools/commit/ba92ae171104b8973327d11e03aa9f82de79b886"><code>ba92ae1</code></a> internal/persistent: avoid incorrect map validation due to multiple keys</li> <li><a href="https://github.com/golang/tools/commit/9474ca31d0dfcd484dd82608705ea967a1b9a71d"><code>9474ca3</code></a> gopls/doc: clarify <code>go work use</code></li> <li><a href="https://github.com/golang/tools/commit/003fde144ea55295b5c7e9bccc8c09c08ce976ed"><code>003fde1</code></a> internal/gcimporter: use nondeprecated go/packages mode bits</li> <li><a href="https://github.com/golang/tools/commit/50506576b8a6cec06115896c3f09e76d47eb86b0"><code>5050657</code></a> gopls/fake: add semantic token modifiers to fake editor</li> <li><a href="https://github.com/golang/tools/commit/88a354830446314a68862f0687ce60950a69c9f9"><code>88a3548</code></a> gopls/coverage: repair coverage.go</li> <li><a href="https://github.com/golang/tools/commit/8e0240af74102670439ba4ddc10d2be2d18b2ef7"><code>8e0240a</code></a> internal/regtest/workspace: permanently skip TestDeleteModule_Interdependent</li> <li>Additional commits viewable in <a href="https://github.com/golang/tools/compare/v0.1.12...v0.3.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.1.12&new-version=0.3.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-11-11 18:09:23 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/protoc-gen-go-micro#61
No description provided.