Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): Bump golang.org/x/tools from 0.12.0 to 0.13.0 #559

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 6, 2023

Bumps golang.org/x/tools from 0.12.0 to 0.13.0.

Release notes

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

gopls/v0.13.0

These are release notes are identical to that of [email protected]. Thanks to all who tested the prerelease!

go install golang.org/x/tools/[email protected]

This release fixes several bugs and mitigates a few performance regressions. It also somewhat reduces the latency and CPU cost of most operations, and includes a few small additional features.

Performance improvements

While [email protected] drastically reduced memory usage, several operations got around 50% slower due to additional I/O reading from the filesystem and time spent decoding indexes. This release optimizes those additional operations to (in most cases) achieve parity or better with the equivalent operation in [email protected]. Additionally, this release reduces total CPU while typing or performing common operations.

Faster code actions

This release includes a particularly large performance improvement in the evaluation of code actions (including formatting/goimports on save). In the past, there have been several reasons why this operation was expensive -- VS Code users may recognize the getting code actions from "Go" pop-up. This release fundamentally changes the way code actions are evaluated so that almost all of the work is pre-computed. As a result, formatting and adding or removing imports on save should be much faster.

Analysis performance

A notable exception to CPU performance parity with [email protected] is running static analysis. In this case, the additional cost incurred by [email protected] was not a regression, but rather the cost of analyzing many more packages to enable "deep" static analysis (see "Improved static analysis" in the [email protected] release notes.

In smaller repositories, the cost of this additional analysis is negligible -- analysis does not run until you stop typing, and typically just re-evaluates the changed package. However, it was discovered that in large workspaces that import low-level packages with a very large API surface (such as a cloud provider SDK or proto library), certain quadratic factors involved with the encoding/decoding of analysis results can dominate the cost of analysis, and result in enormous resource consumption: overloading the CPU and exhausting all memory.

This release partially mitigates those quadratic factors, significantly reducing their cost and limiting concurrency so that they do not exhaust all resources. However, fully eliminating these factors will require additional work to fix their quadratic nature. Until that is done, analysis may continue to be costly on certain repos, especially if "staticcheck" is enabled (because staticcheck does more deep analysis than the default set of analyzers).

In the meantime, a notification is added to make you aware when analysis is slow, and provide an update on the progress of indexing "deep" analysis results. Canceling this notification will cancel the ongoing analysis, but it will resume after the next change. If you don't want to see these notifications, you can set the new "analysisProgressReporting" setting to "false". image.

New Features

Highlight deprecated symbols

Deprecated symbols and packages are now marked as such. To turn off this feature, disable the "deprecated" analysis.

image

Stub methods to fix missing method errors

The "stubmethods" refactoring is now available as a quick-fix for errors related to missing methods. image

Improvements to function extraction

Function extraction now puts context.Context parameters first in the resulting extracted function. See golang/go#60738 for details.

Improvements to the embeddirective analyzer

The embed directive analyzer now verifies the location of //go:embed directives, and provides a quick-fix to add missing "embed" imports. image

... (truncated)

Commits
  • b5e55d1 go/analysis/analysistest: give better hint in SuggestedFix assertion
  • a807ccf go.mod: update golang.org/x dependencies
  • 21090a2 gopls/internal/lsp/cache: use persistent.Set in a couple places
  • 38b898b internal/persistent: add Set
  • 44f7796 gopls: add and enable the slog analyzer
  • 2c6ba93 gopls: tidy for 1.17+
  • 5a96569 gopls/internal/lsp/cmd: don't use x/exp/slices
  • 77c6ac6 gopls/internal/telemetry: don't schedule the next upload
  • 010e045 internal/persistent: use generics
  • a1a928d gopls: remove dead code
  • 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 6, 2023
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.12.0...v0.13.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]>
@dependabot dependabot bot force-pushed the dependabot/go_modules/golang.org/x/tools-0.13.0 branch from d9cdb58 to 388c307 Compare September 7, 2023 14:21
@vsiravar vsiravar merged commit 0f56d23 into main Sep 8, 2023
@vsiravar vsiravar deleted the dependabot/go_modules/golang.org/x/tools-0.13.0 branch September 8, 2023 21:02
KevinLiAWS pushed a commit that referenced this pull request Sep 26, 2023
🤖 I have created a release *beep* *boop*
---


## [0.9.0](v0.8.0...v0.9.0)
(2023-09-25)


### Features

* support push with SOCI
([#578](#578))
([69721b7](69721b7))
* supports adding files inside the VM to support bundles
([#549](#549))
([3b1df46](3b1df46))


### Bug Fixes

* enables bridge-nf-call-iptables by default
([#539](#539))
([6ea1499](6ea1499))
* **Makefile:** use POSIX tar syntax for stdin
([#529](#529))
([e222131](e222131))


### Build System or External Dependencies

* **deps:** Bump github.com/docker/cli from 24.0.5+incompatible to
24.0.6+incompatible
([#560](#560))
([21bb893](21bb893))
* **deps:** Bump github.com/docker/docker from 24.0.5+incompatible to
24.0.6+incompatible
([#561](#561))
([e0160be](e0160be))
* **deps:** Bump github.com/onsi/ginkgo/v2 from 2.11.0 to 2.12.0
([#542](#542))
([8536481](8536481))
* **deps:** Bump github.com/runfinch/common-tests from 0.7.2 to 0.7.3
([#548](#548))
([a054ef3](a054ef3))
* **deps:** Bump github.com/shirou/gopsutil/v3 from 3.23.7 to 3.23.8
([#552](#552))
([cf9399a](cf9399a))
* **deps:** Bump golang.org/x/crypto from 0.12.0 to 0.13.0
([#558](#558))
([f24264d](f24264d))
* **deps:** Bump golang.org/x/tools from 0.12.0 to 0.13.0
([#559](#559))
([0f56d23](0f56d23))
* **deps:** Bump k8s.io/apimachinery from 0.28.0 to 0.28.1
([#543](#543))
([675f76f](675f76f))
* **deps:** Bump k8s.io/apimachinery from 0.28.1 to 0.28.2
([#568](#568))
([915d658](915d658))
* **deps:** Bump submodules and dependencies
([#544](#544))
([94b7497](94b7497))
* **deps:** Bump submodules and dependencies
([#551](#551))
([baf645f](baf645f))
* **deps:** Bump submodules and dependencies
([#565](#565))
([c02413f](c02413f))
* **deps:** Bump submodules and dependencies
([#567](#567))
([f70314e](f70314e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ginglis13 pushed a commit to ginglis13/finch that referenced this pull request Sep 27, 2023
)

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.12.0
to 0.13.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.13.0</h2>
<p><strong>These are release notes are identical to that of
[email protected]. Thanks to all who tested the
prerelease!</strong></p>
<pre><code>go install golang.org/x/tools/[email protected]
</code></pre>
<p>This release fixes several bugs and mitigates a few performance
regressions. It also somewhat reduces the latency and CPU cost of most
operations, and includes a few small additional features.</p>
<h1>Performance improvements</h1>
<p>While <a href="mailto:[email protected]">[email protected]</a> drastically
reduced memory usage, several operations got around 50% slower due to
additional I/O reading from the filesystem and time spent decoding
indexes. This release optimizes those additional operations to (in most
cases) achieve parity or better with the equivalent operation in
[email protected]. Additionally, this release reduces total CPU while typing
or performing common operations.</p>
<h2>Faster code actions</h2>
<p>This release includes a particularly large performance improvement in
the evaluation of code actions (including formatting/goimports on save).
In the past, there have been several reasons why this operation was
expensive -- VS Code users may recognize the <code>getting code actions
from &quot;Go&quot;</code> pop-up. This release fundamentally changes
the way code actions are evaluated so that almost all of the work is
pre-computed. As a result, formatting and adding or removing imports on
save should be much faster.</p>
<h2>Analysis performance</h2>
<p>A notable exception to CPU performance parity with [email protected] is
running static analysis. In this case, the additional cost incurred by
<a href="mailto:[email protected]">[email protected]</a> was not a regression,
but rather the cost of analyzing many more packages to enable
&quot;deep&quot; static analysis (see &quot;Improved static
analysis&quot; in the <a
href="https://github.com/golang/tools/releases/tag/gopls%2Fv0.12.0">[email protected]
release notes</a>.</p>
<p>In smaller repositories, the cost of this additional analysis is
negligible -- analysis does not run until you stop typing, and typically
just re-evaluates the changed package. However, it was discovered that
in large workspaces that import low-level packages with a very large API
surface (such as a cloud provider SDK or proto library), certain
quadratic factors involved with the encoding/decoding of analysis
results can dominate the cost of analysis, and result in enormous
resource consumption: overloading the CPU and exhausting all memory.</p>
<p>This release partially mitigates those quadratic factors,
significantly reducing their cost and limiting concurrency so that they
do not exhaust all resources. However, fully eliminating these factors
will require additional work to fix their quadratic nature. Until that
is done, analysis may continue to be costly on certain repos, especially
if <a
href="https://github.com/golang/tools/blob/master/gopls/doc/settings.md#staticcheck-bool"><code>&quot;staticcheck&quot;</code></a>
is enabled (because staticcheck does more deep analysis than the default
set of analyzers).</p>
<p>In the meantime, a notification is added to make you aware when
analysis is slow, and provide an update on the progress of indexing
&quot;deep&quot; analysis results. Canceling this notification will
cancel the ongoing analysis, but it will resume after the next change.
If you don't want to see these notifications, you can set the new <a
href="https://github.com/golang/tools/blob/master/gopls/doc/settings.md#analysisprogressreporting-bool"><code>&quot;analysisProgressReporting&quot;</code></a>
setting to <code>&quot;false&quot;</code>.
<img
src="https://github.com/golang/tools/assets/57144380/4335a3c9-245b-409d-ab5c-5bbb650b7234"
alt="image" />.</p>
<h1>New Features</h1>
<h2>Highlight deprecated symbols</h2>
<p>Deprecated symbols and packages are now marked as such. To turn off
this feature, disable the <a
href="https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md#deprecated"><code>&quot;deprecated&quot;</code></a>
analysis.</p>
<p><img
src="https://github.com/golang/tools/assets/57144380/f6714035-f37b-487a-a110-591388bb5677"
alt="image" /></p>
<h2>Stub methods to fix missing method errors</h2>
<p>The <a
href="https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md#stubmethods"><code>&quot;stubmethods&quot;</code></a>
refactoring is now available as a quick-fix for errors related to
missing methods.
<img
src="https://github.com/golang/tools/assets/57144380/715c3025-8beb-4cd5-bb8c-970be197b897"
alt="image" /></p>
<h2>Improvements to function extraction</h2>
<p>Function extraction now puts <code>context.Context</code> parameters
first in the resulting extracted function. See <a
href="https://redirect.github.com/golang/go/issues/60738">golang/go#60738</a>
for details.</p>
<h2>Improvements to the embeddirective analyzer</h2>
<p>The embed directive analyzer now verifies the location of
<code>//go:embed</code> directives, and provides a quick-fix to add
missing <code>&quot;embed&quot;</code> imports.
<img
src="https://github.com/golang/tools/assets/57144380/acbe8599-3a2d-40cd-856e-3451ea03c939"
alt="image" /></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/golang/tools/commit/b5e55d198461206bca9558e65cdd518f8e4f2735"><code>b5e55d1</code></a>
go/analysis/analysistest: give better hint in SuggestedFix
assertion</li>
<li><a
href="https://github.com/golang/tools/commit/a807ccf39a240aea24e1fd02ff1ada1a94e87fba"><code>a807ccf</code></a>
go.mod: update golang.org/x dependencies</li>
<li><a
href="https://github.com/golang/tools/commit/21090a2aa8d3719d5a5d4264e41696529522f0bd"><code>21090a2</code></a>
gopls/internal/lsp/cache: use persistent.Set in a couple places</li>
<li><a
href="https://github.com/golang/tools/commit/38b898b246a939ee85545de1da16fd710a72a9c4"><code>38b898b</code></a>
internal/persistent: add Set</li>
<li><a
href="https://github.com/golang/tools/commit/44f7796438e567ee014586c24a7afbab9a1ebed1"><code>44f7796</code></a>
gopls: add and enable the slog analyzer</li>
<li><a
href="https://github.com/golang/tools/commit/2c6ba93996da7073f913c9918ac8dd99411f58b3"><code>2c6ba93</code></a>
gopls: tidy for 1.17+</li>
<li><a
href="https://github.com/golang/tools/commit/5a9656936d83c03440e5b437421cb0fb92e62e31"><code>5a96569</code></a>
gopls/internal/lsp/cmd: don't use x/exp/slices</li>
<li><a
href="https://github.com/golang/tools/commit/77c6ac601f791bef45ef25c870e2d07fdaef6250"><code>77c6ac6</code></a>
gopls/internal/telemetry: don't schedule the next upload</li>
<li><a
href="https://github.com/golang/tools/commit/010e045c4eb965ad42d8feccd193abb1b80ee42f"><code>010e045</code></a>
internal/persistent: use generics</li>
<li><a
href="https://github.com/golang/tools/commit/a1a928ddbedd8082c24d6223aa9ce1f00f922286"><code>a1a928d</code></a>
gopls: remove dead code</li>
<li>Additional commits viewable in <a
href="https://github.com/golang/tools/compare/v0.12.0...v0.13.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.12.0&new-version=0.13.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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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>
ginglis13 pushed a commit to ginglis13/finch that referenced this pull request Sep 27, 2023
🤖 I have created a release *beep* *boop*
---


## [0.9.0](runfinch/finch@v0.8.0...v0.9.0)
(2023-09-25)


### Features

* support push with SOCI
([runfinch#578](runfinch#578))
([69721b7](runfinch@69721b7))
* supports adding files inside the VM to support bundles
([runfinch#549](runfinch#549))
([3b1df46](runfinch@3b1df46))


### Bug Fixes

* enables bridge-nf-call-iptables by default
([runfinch#539](runfinch#539))
([6ea1499](runfinch@6ea1499))
* **Makefile:** use POSIX tar syntax for stdin
([runfinch#529](runfinch#529))
([e222131](runfinch@e222131))


### Build System or External Dependencies

* **deps:** Bump github.com/docker/cli from 24.0.5+incompatible to
24.0.6+incompatible
([runfinch#560](runfinch#560))
([21bb893](runfinch@21bb893))
* **deps:** Bump github.com/docker/docker from 24.0.5+incompatible to
24.0.6+incompatible
([runfinch#561](runfinch#561))
([e0160be](runfinch@e0160be))
* **deps:** Bump github.com/onsi/ginkgo/v2 from 2.11.0 to 2.12.0
([runfinch#542](runfinch#542))
([8536481](runfinch@8536481))
* **deps:** Bump github.com/runfinch/common-tests from 0.7.2 to 0.7.3
([runfinch#548](runfinch#548))
([a054ef3](runfinch@a054ef3))
* **deps:** Bump github.com/shirou/gopsutil/v3 from 3.23.7 to 3.23.8
([runfinch#552](runfinch#552))
([cf9399a](runfinch@cf9399a))
* **deps:** Bump golang.org/x/crypto from 0.12.0 to 0.13.0
([runfinch#558](runfinch#558))
([f24264d](runfinch@f24264d))
* **deps:** Bump golang.org/x/tools from 0.12.0 to 0.13.0
([runfinch#559](runfinch#559))
([0f56d23](runfinch@0f56d23))
* **deps:** Bump k8s.io/apimachinery from 0.28.0 to 0.28.1
([runfinch#543](runfinch#543))
([675f76f](runfinch@675f76f))
* **deps:** Bump k8s.io/apimachinery from 0.28.1 to 0.28.2
([runfinch#568](runfinch#568))
([915d658](runfinch@915d658))
* **deps:** Bump submodules and dependencies
([runfinch#544](runfinch#544))
([94b7497](runfinch@94b7497))
* **deps:** Bump submodules and dependencies
([runfinch#551](runfinch#551))
([baf645f](runfinch@baf645f))
* **deps:** Bump submodules and dependencies
([runfinch#565](runfinch#565))
([c02413f](runfinch@c02413f))
* **deps:** Bump submodules and dependencies
([runfinch#567](runfinch#567))
([f70314e](runfinch@f70314e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants