From d093a6269160cf94b7add76dc3e60e94d8afc44e Mon Sep 17 00:00:00 2001
From: Andrew Gerrand Go will install to a directory named cgo
, set the environment variable
go
.
Change to the directory that will be its parent
and make sure the go
directory does not exist.
-Then clone the repository and check out the latest release tag:go1.6
, for example):
$ git clone https://go.googlesource.com/go
$ cd go
-$ git checkout go1.6
+$ git checkout <tag>
+
+Where <tag>
is the version string of the release.
+
If you intend to modify the go source code, and
@@ -378,7 +383,7 @@ New releases are announced on the
golang-announce
mailing list.
Each announcement mentions the latest release tag, for instance,
-go1.6
.
+go1.6
.
@@ -388,11 +393,13 @@ To update an existing tree to the latest release, you can run:
$ cd go/src
$ git fetch
-$ git checkout <tag>
+$ git checkout <tag>
$ ./all.bash
+
Where <tag>
is the version string of the release.
+