From 12e1bf57a1127781f45269846d85dbf8beb31bee Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Sat, 5 Sep 2020 23:59:47 -0400 Subject: [PATCH] gopls/doc: add information about supported Go versions Fixes golang/go#39146 Change-Id: I89c2883d8e2d9e97e7b5212e61d54fc03e1c2298 Reviewed-on: https://go-review.googlesource.com/c/tools/+/253281 Reviewed-by: Robert Findley --- gopls/doc/user.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gopls/doc/user.md b/gopls/doc/user.md index 846503a05d..db10c2d062 100644 --- a/gopls/doc/user.md +++ b/gopls/doc/user.md @@ -43,7 +43,9 @@ If you see this error: $ go get golang.org/x/tools/gopls@latest go: cannot use path@version syntax in GOPATH mode ``` + then run + ```sh GO111MODULE=on go get golang.org/x/tools/gopls@latest ``` @@ -56,12 +58,20 @@ with `@master` could fail. To actually update your `gopls` to the latest **unstable** version, use: ```sh -$ go get golang.org/x/tools/gopls@master golang.org/x/tools@master +go get golang.org/x/tools/gopls@master golang.org/x/tools@master ``` In general, you should use `@latest` instead, to prevent frequent breakages. +### 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. We run CI to +verify that the `gopls` tests pass for the last 4 major Go releases, but do not +prioritize issues only affecting legacy Go release (3 or 4 releases ago). + ## Configurations ### Environment variables