File tree 3 files changed +27
-1
lines changed
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ ** Deprecated** - See https://go.dev/issues/60951
2
+
1
3
# getgo
2
4
3
5
A proof-of-concept command-line installer for Go.
Original file line number Diff line number Diff line change
1
+ // Deprecated: follow the installation instructions at go.dev/doc/install.
2
+ module golang.org/x/tools/cmd/getgo
3
+
4
+ go 1.18
Original file line number Diff line number Diff line change 5
5
//go:build !plan9
6
6
// +build !plan9
7
7
8
- // The getgo command installs Go to the user's system.
8
+ /*
9
+ The getgo command is deprecated.
10
+
11
+ Deprecated: See https://go.dev/issues/60951.
12
+
13
+ Follow the instructions at https://go.dev/doc/install to install Go instead.
14
+
15
+ Tips:
16
+
17
+ To find the latest available go version, run:
18
+
19
+ go list -m -f '{{.Version}}' go@latest
20
+
21
+ If you want to use the latest go by default, you can use "go env -w" to override "GOTOOLCHAIN":
22
+
23
+ go env -w GOTOOLCHAIN=go$(go list -m -f '{{.Version}}' go@latest)+auto
24
+
25
+ See https://go.dev/blog/toolchain for more information about toolchain management.
26
+ */
9
27
package main
10
28
11
29
import (
@@ -32,6 +50,8 @@ var errExitCleanly error = errors.New("exit cleanly sentinel value")
32
50
33
51
func main () {
34
52
flag .Parse ()
53
+ fmt .Fprintln (os .Stderr , "getgo is deprecated. See https://pkg.go.dev/golang.org/x/tools/cmd/getgo." )
54
+
35
55
if * goVersion != "" && ! strings .HasPrefix (* goVersion , "go" ) {
36
56
* goVersion = "go" + * goVersion
37
57
}
You can’t perform that action at this time.
0 commit comments