Skip to content

Commit

Permalink
chore(deps): update 🤖 aqua tooling to v0.10.1 (#15)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [golang.org/x/tools/gopls](https://togithub.com/golang/tools) | minor
| `v0.9.5` -> `v0.10.1` |

---

### Release Notes

<details>
<summary>golang/tools</summary>

###
[`v0.10.1`](https://togithub.com/golang/tools/releases/tag/gopls%2Fv0.10.1)

[Compare
Source](https://togithub.com/golang/tools/compare/gopls/v0.10.0...gopls/v0.10.1)

This release contains a fix for
[golang/go#&#8203;56505](https://togithub.com/golang/go/issues/56505): a
new crash during method completion on variables of type `*error`.

Thank you to everyone who filed a crash report.

###
[`v0.10.0`](https://togithub.com/golang/tools/releases/tag/gopls%2Fv0.10.0)

[Compare
Source](https://togithub.com/golang/tools/compare/gopls/v0.9.5...gopls/v0.10.0)

This release contains initial support for standalone packages and
package renaming. Please see below for more details.

We are also changing our release policy to better align with semver.

#### Support changes

This version of gopls contains changes to our release policy, deprecates
support for some older Go versions, and deprecates support for several
experimental features.

##### New release policy

As described in
[golang/go#&#8203;55267](https://togithub.com/golang/go/issues/55267),
we are tightening our release policy to better follow semver, increase
stability, and reduce release-related toil. Significant new features
will only be introduced in `*.*.0` patch versions, and subsequent patch
releases will consist only of bugfixes. For example, this version
(v0.10.0) introduces several new features, described below. Subsequent
v0.10.\* releases will contain only bugfixes.

##### Final support for Go 1.13-1.15

Consistent with the above release policy and our stated [support
window](https://togithub.com/golang/tools/tree/master/gopls#supported-go-versions-and-build-systems),
the `v0.10.*` minor version will be the final set of releases to support
being used with Go 1.13-1.15. See
[golang/go#52982
for details.

Gopls will pop up a warning if it resolves a version of the `go` command
that is older than 1.16. Starting with gopls@v0.11.0, gopls will cease
to function when used with a `go` command with a version older than
1.16.

##### Deprecated experimental features

The following experimental features are deprecated, and will be removed
in gopls@v0.11.0:

- **experimentalWorkspaceModule**
([golang/go#&#8203;52897](https://togithub.com/golang/go/issues/52897)):
this feature has been replaced by `go.work` files. See our
[documentation](https://togithub.com/golang/tools/blob/master/gopls/doc/workspace.md#go-workspaces-go-118)
for information on how to use `go.work` files to work on multiple
modules.
- **experimentalWatchedFileDelay**
([golang/go#&#8203;55268](https://togithub.com/golang/go/issues/55268)):
LSP clients should instead be responsible for buffering
`workspace/didChangeWatchedFiles` notifications.
- **experimentalUseInvalidMetadata**
([golang/go#&#8203;54180](https://togithub.com/golang/go/issues/54180)):
we are going to focus instead on improving diagnostics for broken
workspaces.

#### New Features

##### Support for "standalone packages"

Gopls now recognizes certain files as "standalone main packages",
meaning they should be interpreted as main packages consisting of a
single file. To do this, gopls looks for packages named `main`
containing a single build constraint that matches one of the tags
configured by the new
[`standaloneTags`](https://togithub.com/golang/tools/blob/master/gopls/doc/settings.md#standalonetags-string)
setting.

This enables cross references and other features when working in a file
such as the example below that contains a `//go:build ignore` build
constraint.


![image](https://user-images.githubusercontent.com/57144380/197039428-72d78300-cbea-4abe-a408-e171991094b8.png)

##### (preview) Support for package renaming

This version of gopls contains initial support for renaming packages
([golang/go#&#8203;41567](https://togithub.com/golang/go/issues/41567)).
This is a work in progress and has a surprising number of edge cases.
Additionally, this feature depends heavily on LSP client behavior:
renaming a package involves moving the underlying package directory,
which may behave differently in different editors. Please try it out,
and report your experience at
[golang/go#&#8203;56184](https://togithub.com/golang/go/issues/56184).

To rename a package, initiate a rename request on the package clause of
a file in the package:

![image](https://user-images.githubusercontent.com/57144380/197041786-bf9e617c-9961-46ae-b21a-c240a18a3014.png)

When this renaming is applied, gopls will adjust other package files
accordingly, rename the package directory, and update import paths
referencing the current package or any nested package in the renamed
directory.

![image](https://user-images.githubusercontent.com/57144380/197042160-e034e38d-3cd3-4c62-b912-747d8dc2f4ff.png)

##### Method information in hover

Hovering over a type now shows a summary of its methods.


![image](https://user-images.githubusercontent.com/57144380/197039012-97172677-3d73-4f23-940a-a64c233003b2.png)

##### Support for Go 1.19 doc comment syntax

This version of gopls supports the new doc comment syntax added in Go
1.19. See https://go.dev/doc/comment for more details.


![image](https://user-images.githubusercontent.com/57144380/197044163-25458881-b735-4676-a83b-81346284749c.png)

##### New diff algorithm

This version of gopls uses an entirely new diff algorithm behind the
scenes, to compute the text edits that gopls sends to the LSP client. We
hope that this fixes a number of bugs in the old diff implementation,
but for the most part you should not notice any effect of this change.
If you do experience problems related to text edits, please report an
issue and set the
[`"newDiff"`](https://togithub.com/golang/tools/blob/master/gopls/doc/settings.md#newdiff-string)
setting to `"old"` to revert to the old diff algorithm.

#### Configuration changes

This release changes the default value of the `"directoryFilters"`
setting from `["-node_modules"]` to `["-**/node_modules"]`, following
support for wildcard syntax.

#### Bug fixes

This version of gopls includes several bug fixes, notably:

- [golang/go#&#8203;43144](https://togithub.com/golang/go/issues/43144):
find references doesn't always search tests
- [golang/go#&#8203;54816](https://togithub.com/golang/go/issues/54816):
extract function action doesn't work if the first line is a comment
- [golang/go#&#8203;55293](https://togithub.com/golang/go/issues/55293):
textDocument/definition is slow in large codebase

A full list of all issues fixed can be found in the
[gopls/v0.10.0](https://togithub.com/golang/go/milestone/278?closed=1)
milestone.
To report a new problem, please file a new issue at
https://go.dev/issues/new.

#### Thank you to our contributors!

[@&#8203;adonovan](https://togithub.com/adonovan),
[@&#8203;brianpursley](https://togithub.com/brianpursley),
[@&#8203;findleyr](https://togithub.com/findleyr),
[@&#8203;hyangah](https://togithub.com/hyangah),
[@&#8203;pjweinbgo](https://togithub.com/pjweinbgo),
[@&#8203;suzmue](https://togithub.com/suzmue), and
[@&#8203;dle8](https://togithub.com/dle8)!

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 3am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox.

Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
  • Loading branch information
mend-for-github-com[bot] committed Nov 7, 2022
1 parent 56bd85e commit 7a430f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aqua.yaml
Expand Up @@ -12,7 +12,7 @@ packages:
- name: charmbracelet/glow@v1.4.1
- name: goreleaser/goreleaser@v1.12.3
- name: mvdan/gofumpt@v0.4.0
- name: golang.org/x/tools/gopls@v0.9.5
- name: golang.org/x/tools/gopls@v0.10.1
- name: golang/tools/gorename@v0.2.0
- name: golang/tools/stringer@v0.2.0
- name: golang/tools/gomvpkg@v0.2.0
Expand Down

0 comments on commit 7a430f0

Please sign in to comment.