+ $base/$module/@latest |
+
Returns JSON-formatted metadata about the latest known version of a
module in the same format as
$base/$module/@v/$version.info . The latest version should
@@ -3165,43 +3165,43 @@ if the module path is matched by the `GOINSECURE` environment variable.
-
- Name |
- Command |
- GOVCS default |
- Secure schemes |
+
+ Name |
+ Command |
+ GOVCS default |
+ Secure schemes |
-
- Bazaar |
- bzr |
- Private only |
- https , bzr+ssh |
+
+ Bazaar |
+ bzr |
+ Private only |
+ https , bzr+ssh |
-
- Fossil |
- fossil |
- Private only |
- https |
+
+ Fossil |
+ fossil |
+ Private only |
+ https |
-
- Git |
- git |
- Public and private |
- https , git+ssh , ssh |
+
+ Git |
+ git |
+ Public and private |
+ https , git+ssh , ssh |
-
- Mercurial |
- hg |
- Public and private |
- https , ssh |
+
+ Mercurial |
+ hg |
+ Public and private |
+ https , ssh |
-
- Subversion |
- svn |
- Private only |
- https , svn+ssh |
+
+ Subversion |
+ svn |
+ Private only |
+ https , svn+ssh |
@@ -3901,24 +3901,24 @@ conflicts on case-insensitive file systems.
-
- Path |
- Description |
+
+ Path |
+ Description |
-
- $module@$version/ |
-
+ |
+ $module@$version/ |
+
Directory containing extracted contents of a module .zip
file. This serves as a module root directory for a downloaded module. It
won't contain a go.mod file if the original module
didn't have one.
|
-
- cache/download/ |
-
+ |
+ cache/download/ |
+
Directory containing files downloaded from module proxies and files
derived from version control systems. The layout of
this directory follows the
@@ -3927,44 +3927,44 @@ conflicts on case-insensitive file systems.
server or when referenced with a file:// URL.
|
-
- cache/download/$module/@v/list |
-
+ |
+ cache/download/$module/@v/list |
+
List of known versions (see
GOPROXY protocol). This
may change over time, so the go command usually fetches a
new copy instead of re-using this file.
|
-
- cache/download/$module/@v/$version.info |
-
+ |
+ cache/download/$module/@v/$version.info |
+
JSON metadata about the version. (see
GOPROXY protocol). This
may change over time, so the go command usually fetches a
new copy instead of re-using this file.
|
-
- cache/download/$module/@v/$version.mod |
-
+ |
+ cache/download/$module/@v/$version.mod |
+
The go.mod file for this version (see
GOPROXY protocol). If
the original module did not have a go.mod file, this is
a synthesized file with no requirements.
|
-
- cache/download/$module/@v/$version.zip |
-
+ |
+ cache/download/$module/@v/$version.zip |
+
The zipped contents of the module (see
GOPROXY protocol and
Module zip files).
|
-
- cache/download/$module/@v/$version.ziphash |
-
+ |
+ cache/download/$module/@v/$version.ziphash |
+
A cryptographic hash of the files in the .zip file.
Note that the .zip file itself is not hashed, so file
order, compression, alignment, and metadata don't affect the hash.
@@ -3976,17 +3976,17 @@ conflicts on case-insensitive file systems.
directories match these files.
|
-
- cache/download/sumdb/ |
-
+ |
+ cache/download/sumdb/ |
+
Directory containing files downloaded from a
checksum database (typically
sum.golang.org ).
|
-
- cache/vcs/ |
-
+ |
+ cache/vcs/ |
+
Contains cloned version control repositories for modules fetched
directly from their sources. Directory names are hex-encoded hashes
derived from the repository type and URL. Repositories are optimized
@@ -4111,15 +4111,15 @@ values.
-
- Path |
- Description |
+
+ Path |
+ Description |
-
- $base/latest |
-
+ |
+ $base/latest |
+
Returns a signed, encoded tree description for the latest log. This
signed description is in the form of a
note,
@@ -4131,10 +4131,9 @@ values.
golang.org/x/mod/sumdb/tlog#FormatTree.
|
-
-
- $base/lookup/$module@$version |
-
+ |
+ $base/lookup/$module@$version |
+
Returns the log record number for the entry about $module
at $version , followed by the data for the record (that is,
the go.sum lines for $module at
@@ -4142,10 +4141,9 @@ values.
contains the record.
|
-
-
- $base/tile/$H/$L/$K[.p/$W] |
-
+ |
+ $base/tile/$H/$L/$K[.p/$W] |
+
Returns a [log tile](https://research.swtch.com/tlog#serving_tiles),
which is a set of hashes that make up a section of the log. Each tile
is defined in a two-dimensional coordinate at tile level
@@ -4155,16 +4153,14 @@ values.
back to fetching the full tile if a partial tile is not found.
|
-
-
- $base/tile/$H/data/$K[.p/$W] |
-
+ |
+ $base/tile/$H/data/$K[.p/$W] |
+
Returns the record data for the leaf hashes in
/tile/$H/0/$K[.p/$W] (with a literal data path
element).
|
-
@@ -4230,15 +4226,15 @@ of all environment variables recognized by the `go` command.
-
- Variable |
- Description |
+
+ Variable |
+ Description |
-
- GO111MODULE |
-
+ |
+ GO111MODULE |
+
Controls whether the go command runs in module-aware mode
or GOPATH mode. Three values are recognized:
@@ -4265,9 +4261,9 @@ of all environment variables recognized by the `go` command.
|
-
- GOMODCACHE |
-
+ |
+ GOMODCACHE |
+
The directory where the go command will store downloaded
modules and related files. See Module
@@ -4279,9 +4275,9 @@ of all environment variables recognized by the `go` command.
|
-
- GOINSECURE |
-
+ |
+ GOINSECURE |
+
Comma-separated list of glob patterns (in the syntax of Go's
path.Match ) of module path
@@ -4296,9 +4292,9 @@ of all environment variables recognized by the `go` command.
|
-
- GONOPROXY |
-
+ |
+ GONOPROXY |
+
Comma-separated list of glob patterns (in the syntax of Go's
path.Match ) of module path
@@ -4312,9 +4308,9 @@ of all environment variables recognized by the `go` command.
|
-
- GONOSUMDB |
-
+ |
+ GONOSUMDB |
+
Comma-separated list of glob patterns (in the syntax of Go's
path.Match ) of module path
@@ -4328,9 +4324,9 @@ of all environment variables recognized by the `go` command.
|
-
- GOPATH |
-
+ |
+ GOPATH |
+
In GOPATH mode, the GOPATH variable is a
list of directories that may contain Go code.
@@ -4347,9 +4343,9 @@ of all environment variables recognized by the `go` command.
|
-
- GOPRIVATE |
-
+ |
+ GOPRIVATE |
+
Comma-separated list of glob patterns (in the syntax of Go's
path.Match ) of module path
prefixes that should be considered private. GOPRIVATE
@@ -4360,9 +4356,9 @@ of all environment variables recognized by the `go` command.
GOVCS .
|
-
- GOPROXY |
-
+ |
+ GOPROXY |
+
List of module proxy URLs, separated by commas (, ) or
pipes (| ). When the go command looks up
@@ -4417,9 +4413,9 @@ of all environment variables recognized by the `go` command.
|
-
- GOSUMDB |
-
+ |
+ GOSUMDB |
+
Identifies the name of the checksum database to use and optionally
its public key and URL. For example:
@@ -4459,9 +4455,9 @@ GOSUMDB="sum.golang.org+<publickey> https://sum.golang.org"
|
-
- GOVCS |
-
+ |
+ GOVCS |
+
Controls the set of version control tools the go command
may use to download public and private modules (defined by whether
@@ -4482,9 +4478,9 @@ GOSUMDB="sum.golang.org+<publickey> https://sum.golang.org"
|
-
- GOWORK |
-
+ |
+ GOWORK |
+
The `GOWORK` environment variable instructs the `go` command to enter workspace
mode using the provided [`go.work` file](#go-work-file) to define the workspace.
| | |