Bump golang.org/x/tools from 0.1.0 to 0.30.0 in /go
Bumps golang.org/x/tools from 0.1.0 to 0.30.0.
Release notes
Sourced from golang.org/x/tools's releases.
gopls/v0.17.1
This release fixes two crashes in [email protected]:
- golang/go#70889: a crash in completion of type instances inside a type conversion (found via telemetry).
- golang/go#70927: a crash when a test file has a declaration with signature
func(*error).gopls/v0.17.0
This release includes a variety of new features, bug fixes, and performance improvements. It is also the first version of gopls to require the latest released version of the Go toolchain, which should be downloaded transparently during the gopls installation process.
go install golang.org/x/tools/[email protected]New support policies
With this release, we are narrowing our official support window to align with the Go support policy. This will reduce the considerable costs to us of testing against older Go versions, allowing us to spend more time fixing bugs and adding features that benefit the majority of gopls users who run recent versions of Go.
This narrowing is in two dimensions: build compatibility refers to the versions of the Go toolchain that can be used to build gopls, and go command compatibility refers to the versions of the
gocommand that can be used by gopls to list information about packages and modules in your workspace.Build compatibility: the most recent major Go version
As described in the v0.16.0 release notes, building the latest version of gopls will now require the latest major version of the Go toolchain. Therefore this release ([email protected]) must be built with Go 1.23.1 or later. Thanks to automatic toolchain upgrades, if your system Go version is at least Go 1.21.0 and you have the
GOTOOLCHAINenvironment variable set toauto(or unset), thegocommand will automatically download the new Go toolchain as needed, similar to upgrading a module dependency.Go command compatibility: the 2 most recent major Go versions
The [email protected] releases will be the final versions of gopls to nominally support integrating with more than the 2 most recent Go releases. In the past, we implied "best effort" support for up to 4 versions, though in practice we did not have resources to fix bugs that were present only with older Go versions. With [email protected], we narrowed this best effort support to 3 versions, primarily because users need at least Go 1.21 to benefit from automatic toolchain upgrades (see above).
Starting with [email protected], we will officially support integrating with only the 2 most recent major versions of the
gocommand. This is consistent with the Go support policy. See golang/go#69321 (or this comment specifically) for details.We won't prevent gopls from being used with older Go versions (just as we don't disallow integration with arbitrary
go/packagesdrivers), but we won't run integration tests against older Go versions nor fix bugs that are only present when used with old Go versions.Configuration changes
- The
fieldalignmentanalyzer, previously disabled by default, has been removed: it is redundant with the hover size/offset information displayed by v0.16.0 and its diagnostics were confusing.- The
undeclarednameanalyzer has been replaced with an ordinary code action.- The kind (identifiers) of all of gopls' code actions have changed to use more specific hierarchical names. For example, "Inline call" has changed from
refactor.inlinetorefactor.inline.call. This allows clients to request particular code actions more precisely. The user manual now includes the identifier in the documentation for each code action.- The experimental
allowImplicitNetworkAccesssetting is removed, following its deprecation in [email protected]. See golang/go#66861 for details.New features
Refactoring
This release contains a number of new features related to refactoring. Additionally, it fixes many bugs in existing refactoring operations, primarily related to extract and inline.
These improvements move us toward a longer term goal of offering a more robust and complete set of refactoring tools. We still have much to do, and this effort will continue into 2025.
"Move parameter" refactorings
Gopls now offers code actions to move function and method parameters left or right in the function signature, updating all callers.
https://github.com/user-attachments/assets/6f4c0ae3-83c4-483c-81d8-0cd2bfbc0ca2
... (truncated)
Commits
09747cdgo.mod: update golang.org/x dependenciesdc9353bgopls/internal/analysis/modernize: appendclipped: unclipa886a1cinternal/analysisinternal: AddImport handles dot imports94c3c49go/analysis/analysistest: RunWithSuggestedFix: assume valid fixes5f9967dgopls/internal/analysis/modernize: strings.Split -> SplitSeqa1eb5fdgo/analysis/passes/framepointer: support arm649c087d9internal/analysis/gofix: change "forward" back to "inline"82317cegopls/internal/analysis/modernize: slices.Delete: import slicese65ea15go/analysis/internal/checker: implement three-way mergea9bf6fdgopls/internal/analysis/modernize: remove SortStable- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| keepsake | ❌ Failed (Inspect) | Feb 11, 2025 0:00am |