-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls: warn about Go 1.19 and Go 1.20
Update the support table to warn when users install gopls with Go 1.19 or 1.20, or have these older Go versions in their PATH. Clarify current and future support in the README. Fixes golang/go#50825 Updates golang/go#65917 Change-Id: I99de1a7717a8cf99cae1a561ced63e9724dfff66 Reviewed-on: https://go-review.googlesource.com/c/tools/+/588763 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,32 +75,35 @@ and | |
### Supported Go versions | ||
|
||
`gopls` follows the | ||
[Go Release Policy](https://golang.org/doc/devel/release.html#policy), | ||
meaning that it officially supports the last 2 major Go releases. Per | ||
[issue #39146](https://go.dev/issues/39146), we attempt to maintain best-effort | ||
support for the last 4 major Go releases, but this support extends only to not | ||
breaking the build and avoiding easily fixable regressions. | ||
|
||
In the context of this discussion, gopls "supports" a Go version if it supports | ||
being built with that Go version as well as integrating with the `go` command | ||
of that Go version. | ||
|
||
The following table shows the final gopls version that supports a given Go | ||
version. Go releases more recent than any in the table can be used with any | ||
version of gopls. | ||
[Go Release Policy](https://golang.org/doc/devel/release.html#policy), meaning | ||
that it officially supports only the two most recent major Go releases. Until | ||
August 2024, the Go team will also maintain best-effort support for the last | ||
4 major Go releases, as described in [issue #39146](https://go.dev/issues/39146). | ||
|
||
Starting with the release of Go 1.23.0 and [email protected] in August 2024, the | ||
gopls build will depend on the latest version of Go. However, due to the | ||
[forward compatibility](https://go.dev/blog/toolchain) support added to the | ||
`go` command in Go 1.21, as long as Go 1.21 or later are used to install gopls, | ||
the toolchain upgrade will be handled automatically, just like any other | ||
dependency. Gopls will continue to support integrating with the two most recent | ||
major Go releases of the `go` command, per the Go Release Policy. See | ||
[issue #65917](https://go.dev/issue/65917) for more details. | ||
|
||
Maintaining support for legacy versions of Go caused | ||
[significant friction](https://go.dev/issue/50825) for gopls maintainers and | ||
held back other improvements. If you are unable to install a supported version | ||
of Go on your system, you can still install an older version of gopls. The | ||
following table shows the final gopls version that supports a given Go version. | ||
Go releases more recent than those in the table can be used with any version of | ||
gopls. | ||
|
||
| Go Version | Final gopls version with support (without warnings) | | ||
| ----------- | --------------------------------------------------- | | ||
| Go 1.12 | [[email protected]](https://github.com/golang/tools/releases/tag/gopls%2Fv0.7.5) | | ||
| Go 1.15 | [[email protected]](https://github.com/golang/tools/releases/tag/gopls%2Fv0.9.5) | | ||
| Go 1.17 | [[email protected]](https://github.com/golang/tools/releases/tag/gopls%2Fv0.11.0) | | ||
| Go 1.18 | [[email protected]](https://github.com/golang/tools/releases/tag/gopls%2Fv0.14.2) | | ||
|
||
Our extended support is enforced via [continuous integration with older Go | ||
versions](doc/contributing.md#ci). This legacy Go CI may not block releases: | ||
test failures may be skipped rather than fixed. Furthermore, if a regression in | ||
an older Go version causes irreconcilable CI failures, we may drop support for | ||
that Go version in CI if it is 3 or 4 Go versions old. | ||
| Go 1.20 | [[email protected]](https://github.com/golang/tools/releases/tag/gopls%2Fv0.15.3) | | ||
|
||
### Supported build systems | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters