From: Andrew Gerrand
Date: Thu, 14 Apr 2016 02:12:11 +0000 (+1000)
Subject: doc: add classes to version tags in source install instructions
X-Git-Tag: go1.6.2~7
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0b28d0360b3a5888bcb85b53be6e571338f0406f;p=gostls13.git
doc: add classes to version tags in source install instructions
This will allow us to mechanically substitute these strings
using javascript (in a forthcoming change to x/tools/godoc).
Updates #14371
Change-Id: I96e876283060ffbc9f3eabaf55d6b880685453e1
Reviewed-on: https://go-review.googlesource.com/22055
Reviewed-by: Brad Fitzpatrick
Reviewed-on: https://go-review.googlesource.com/22069
---
diff --git a/doc/install-source.html b/doc/install-source.html
index 7da5675f63..da71f47bb7 100644
--- a/doc/install-source.html
+++ b/doc/install-source.html
@@ -194,14 +194,19 @@ To build without cgo
, set the environment variable
Go will install to a directory named 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:
+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.
+
+
(Optional) Switch to the master branch
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.
+
Optional environment variables