Skip to content

Commit 0e44f7a

Browse files
committed
gopls/doc/advanced.md: correct commands for unstable version build
`go get golang.org/x/tools/gopls@master ...` resulted in warning messages like: go get: installing executables with 'go get' in module mode is deprecated. To adjust and download dependencies of the current module, use 'go get -d'. To install using requirements of the current module, use 'go install'. To install ignoring the current module, use 'go install' with a version, like 'go install example.com/cmd@latest'. For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. Change-Id: I1299983604c27e333f02af875826b5dd4d170068 Reviewed-on: https://go-review.googlesource.com/c/tools/+/388074 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Robert Findley <rfindley@google.com>
1 parent acdddf6 commit 0e44f7a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gopls/doc/advanced.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ Where `vX.Y.Z` is the desired version.
1616

1717
### Unstable versions
1818

19-
To update `gopls` to the latest **unstable** version, use:
19+
To update `gopls` to the latest **unstable** version, use the following
20+
commands.
2021

2122
```sh
2223
# Create an empty go.mod file, only for tracking requirements.
2324
cd $(mktemp -d)
2425
go mod init gopls-unstable
2526

2627
# Use 'go get' to add requirements and to ensure they work together.
27-
go get golang.org/x/tools/gopls@master golang.org/x/tools@master
28+
go get -d golang.org/x/tools/gopls@master golang.org/x/tools@master
2829

29-
# For go1.17 or older, the above `go get` command will build and
30-
# install `gopls`. For go1.18+ or tip, run the following command to install
31-
# using selected versions in go.mod.
3230
go install golang.org/x/tools/gopls
3331
```
3432

0 commit comments

Comments
 (0)