1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:50:31 -07:00

[release-branch.go1] cmd/go: update docs about tags for get command

««« backport 79e6b4602f26
cmd/go: update docs about tags for get command
"go1" dominates. Delete the text about weekly and release.
We can revisit this once the situation changes.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5969043
»»»
This commit is contained in:
Rob Pike 2012-03-30 13:07:10 +11:00
parent 6174b5e21e
commit 6d62c5c99a
2 changed files with 10 additions and 18 deletions

View File

@ -227,15 +227,11 @@ The -u flag instructs get to use the network to update the named packages
and their dependencies. By default, get uses the network to check out and their dependencies. By default, get uses the network to check out
missing packages but does not use it to look for updates to existing packages. missing packages but does not use it to look for updates to existing packages.
When checking out or updating a package, get looks for a branch or When checking out or updating a package, get looks for a branch or tag
tag that matches the locally installed version of Go. If the local that matches the locally installed version of Go. The most important
version "is release.rNN", it searches for "go.rNN". (For an rule is that if the local installation is running version "go1", get
installation using Go version "weekly.YYYY-MM-DD", it searches for a searches for a branch or tag named "go1". If no such version exists it
package version labeled "go.YYYY-MM-DD".) If the desired version retrieves the most recent version of the package.
cannot be found but others exist with labels in the correct format,
get retrieves the most recent version before the desired label.
Finally, if all else fails it retrieves the most recent version of
the package.
For more about specifying packages, see 'go help packages'. For more about specifying packages, see 'go help packages'.

View File

@ -37,15 +37,11 @@ The -u flag instructs get to use the network to update the named packages
and their dependencies. By default, get uses the network to check out and their dependencies. By default, get uses the network to check out
missing packages but does not use it to look for updates to existing packages. missing packages but does not use it to look for updates to existing packages.
When checking out or updating a package, get looks for a branch or When checking out or updating a package, get looks for a branch or tag
tag that matches the locally installed version of Go. If the local that matches the locally installed version of Go. The most important
version "is release.rNN", it searches for "go.rNN". (For an rule is that if the local installation is running version "go1", get
installation using Go version "weekly.YYYY-MM-DD", it searches for a searches for a branch or tag named "go1". If no such version exists it
package version labeled "go.YYYY-MM-DD".) If the desired version retrieves the most recent version of the package.
cannot be found but others exist with labels in the correct format,
get retrieves the most recent version before the desired label.
Finally, if all else fails it retrieves the most recent version of
the package.
For more about specifying packages, see 'go help packages'. For more about specifying packages, see 'go help packages'.