1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-05 13:15:26 +02:00
dependabot[bot] 5bf89f21eb
feat(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0 (#4237)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.11.1
to 0.12.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.12.0</h2>
<p>This release contains a major rewrite of the way gopls computes and
stores package information, with the goal of reducing memory usage and
allowing gopls to scale to larger repositories. This change can also
significantly reduce startup time when workspaces are reopened, as gopls
now uses a file-based cache to persist data across sessions. With these
optimizations, gopls is finally able to <a
href="https://go.dev/issues/48738">fully analyze dependencies</a> using
the <a
href="https://pkg.go.dev/golang.org/x/tools/go/analysis">golang.org/x/tools/go/analysis</a>
framework, resulting in improved accuracy for analysis diagnostics.</p>
<p>You can install this release with <code>go install</code>:</p>
<pre><code>go install golang.org/x/tools/gopls@v0.12.0
</code></pre>
<h1>Support changes</h1>
<p>As gopls matures, we're trying to simplify its configuration so that
gopls Just Works in more scenarios, and so that we have fewer
configuration combinations to test. This means that we will be gradually
deprecating settings that affect the core behavior of gopls.</p>
<h2>Removed experimental configuration options</h2>
<p>As announced in the <a
href="https://github.com/golang/tools/releases/tag/gopls%2Fv0.10.0">v0.10.0
release notes</a>, this release removes support for the
<code>experimentalWorkspaceModule</code> and
<code>experimentalWatchedFileDelay</code> settings. The
<code>experimentalPackageCacheKey</code> setting is also removed, as it
is irrelevant in the new design.</p>
<p>The <code>experimentalWorkspaceModule</code> setting in particular
may still be in use by some users. This setting has been superseded by
built-in support for multi-module workspaces in the <code>go</code>
command, via <a href="https://go.dev/doc/tutorial/workspaces">Go
workspaces</a>. To get the equivalent behavior in gopls@v0.12.0, please
create a <code>go.work</code> file in your workspace using all desired
modules. To use all modules in your workspace, run:</p>
<pre><code>go work use -r .
</code></pre>
<h2>Dropped support for Go 1.13-1.15, deprecated support for Go
1.16-1.17</h2>
<p>As announced in the <a
href="https://github.com/golang/tools/releases/tag/gopls%2Fv0.10.0">v0.10.0
release notes</a>, this release drops support for Go 1.13-1.15, and in
fact does not build with these Go versions.</p>
<p>Additionally, <code>gopls@v0.12.x</code> will be the final sequence
of versions supporting Go 1.16-1.17, and therefore displays a
deprecation notice when used with these Go versions.</p>
<h2>Supported operating systems</h2>
<p>Given that our users are almost entirely on Linux, Windows, or
Darwin, we are discussing narrowing our support to focus on those
operating systems, in <a
href="https://redirect.github.com/golang/go/issues/59981">golang/go#59981</a>.</p>
<h1>Performance improvements</h1>
<p>The banner feature of this release is an internal redesign that
significantly improves the way gopls scales in larger codebases.
Performance, particularly memory usage, has <a
href="https://redirect.github.com/golang/go/issues/36943">long</a> <a
href="https://redirect.github.com/golang/go/issues/37790">been</a> <a
href="https://redirect.github.com/golang/go/issues/43968">a</a> <a
href="https://redirect.github.com/golang/go/issues/44981">pain</a> <a
href="https://redirect.github.com/golang/go/issues/45363">point</a> <a
href="https://redirect.github.com/golang/go/issues/45457">for</a> <a
href="https://redirect.github.com/golang/go/issues/46897">our</a> <a
href="https://redirect.github.com/golang/go/issues/47855">users</a>.</p>
<h2>Reduced memory usage</h2>
<p>Previous releases of gopls held typed syntax trees for all packages,
in memory, all the time. With this release, these large data structures
are ephemeral: as soon as they are constructed, an index of information
derived from them is saved persistently to a file-based cache, and the
data structures are recycled. The index for each package includes the
locations of declaring and referring identifiers; the set of exported
declarations and their types; the method sets of each interface; and any
diagnostics and facts (see below) produced during analysis. The index
holds all the information needed to serve global-scope LSP queries such
as “references”, “implementations”, and so on.</p>
<p>Moving package information to a file-based cache greatly reduces the
amount of RAM gopls uses, by almost an order of magnitude in larger
projects. The table below shows the reductions in steady-state memory
usage for three open-source Go repositories.</p>
<table>
<thead>
<tr>
<th>Project</th>
<th>Packages</th>
<th>In-use bytes v0.11.0</th>
<th>v0.12.0</th>
<th>Change</th>
</tr>
</thead>
<tbody>
<tr>
<td>gopls</td>
<td>405</td>
<td>497MB</td>
<td>232MB</td>
<td>-53%</td>
</tr>
<tr>
<td>kubernetes</td>
<td>3137</td>
<td>3090MB</td>
<td>832MB</td>
<td>-73%</td>
</tr>
<tr>
<td>google-cloud-go + submods</td>
<td>7657</td>
<td>5039MB</td>
<td>863MB</td>
<td>-83%</td>
</tr>
</tbody>
</table>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="229f8486be"><code>229f848</code></a>
gopls/internal/lsp/source: enable new defers analyzer</li>
<li><a
href="2dc7ebab28"><code>2dc7eba</code></a>
go/analysis: use parser.SkipObjectResolution</li>
<li><a
href="f91c023a9b"><code>f91c023</code></a>
go.mod: update golang.org/x dependencies</li>
<li><a
href="e0783a89e9"><code>e0783a8</code></a>
internal/gcimporter: remove bug report on objectpath failure</li>
<li><a
href="75f6f9c0b0"><code>75f6f9c</code></a>
gopls/internal/bug: add gopls/bug telemetry counter</li>
<li><a
href="4b271f9c71"><code>4b271f9</code></a>
gopls: add gopls/client telemetry counters</li>
<li><a
href="d0b18e25a0"><code>d0b18e2</code></a>
go/analysis/passes/copylock: fix infinite recursion</li>
<li><a
href="5b4d426665"><code>5b4d426</code></a>
gopls/internal/hooks: clean language version before passing to
gofumpt</li>
<li><a
href="2160c5f15f"><code>2160c5f</code></a>
gopls/internal/lsp/analysis: fix stubmethods with variadic
parameters</li>
<li><a
href="3d20bbe0fb"><code>3d20bbe</code></a>
internal/gcimporter: add a missing return if objectpath fails</li>
<li>See full diff in <a
href="https://github.com/golang/tools/compare/v0.11.1...v0.12.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.11.1&new-version=0.12.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 09:32:22 -03:00
2023-08-07 12:11:10 +00:00
2023-08-04 14:49:34 +00:00
2023-05-25 23:07:10 -03:00
2022-12-29 14:55:45 -03:00
2023-06-05 17:47:54 +00:00
2022-08-21 15:36:37 -03:00
2022-10-31 16:06:50 -03:00
2023-04-30 14:19:55 -03:00
2023-07-12 09:47:07 -03:00
2022-02-08 14:21:36 -03:00
2023-06-27 11:35:06 +00:00
2023-06-21 17:48:38 -03:00
2023-05-18 14:23:10 -03:00
2023-06-15 03:03:33 +00:00
2023-07-13 17:21:18 +00:00

GoReleaser Logo

GoReleaser

Deliver Go binaries as fast and easily as possible.


GoReleaser builds Go binaries for several platforms, creates a GitHub release and then pushes a Homebrew formula to a tap repository. All that wrapped in your favorite CI.


Get GoReleaser

Documentation

Documentation is hosted live at https://goreleaser.com

Community

You have questions, need support and or just want to talk about GoReleaser?

Here are ways to get in touch with the GoReleaser community:

Join Discord Follow Twitter GitHub Discussions

You can find the links above and all others here.

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines for further information.

Badges

Release Software License Build status Codecov branch Artifact Hub Go Doc Powered By: GoReleaser Backers on Open Collective Sponsors on Open Collective Conventional Commits CII Best Practices

GitHub Sponsors

High-tier sponsors of @caarlos0 on GitHub:

OpenCollective

Sponsors

Does your company use goreleaser? Help keep the project bug-free and feature rich by sponsoring the project.

Backers

Love our work and community? Become a backer.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Stargazers over time

Stargazers over time

Languages
Go 93.4%
Nix 2.1%
Ruby 2%
YAML 1%
HTML 0.6%
Other 0.9%