go/src
matloob 8564fede89 cmd/go: remove reference to no longer existing -i flag
The flag was removed in CL 416094.

Fixes #76850

Change-Id: Ia219b4d2d8391f08487b4ff1bbec43766a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/730721
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2025-12-17 11:14:25 -08:00
..
archive archive/tar, compress/bzip2: base64 some troublesome testdata files 2025-12-15 08:34:13 -08:00
arena
bufio
builtin
bytes
cmd cmd/go: remove reference to no longer existing -i flag 2025-12-17 11:14:25 -08:00
cmp
compress archive/tar, compress/bzip2: base64 some troublesome testdata files 2025-12-15 08:34:13 -08:00
container
context context: don't return the wrong error when Cause races cancellation 2025-11-24 17:02:35 -08:00
crypto crypto: rename fips140v2.0 to fips140v1.26 2025-12-17 09:29:08 -08:00
database/sql Revert "database/sql: allow drivers to override Scan behavior" 2025-12-11 11:57:52 -08:00
debug debug/elf: correct case of DWARF in comment 2025-12-01 09:41:50 -08:00
embed
encoding encoding/json/jsontext: add symbolic Kind constants 2025-12-11 09:37:03 -08:00
errors errors: add examples for custom Is/As matching 2025-11-21 12:40:11 -08:00
expvar
flag
fmt fmt: document space behavior of Append 2025-11-27 19:54:18 -08:00
go go/doc: exclude examples with results 2025-12-16 12:37:31 -08:00
hash
html
image cmd/internal/obj/arm64, image/gif, runtime, sort: use math/bits to calculate log2 2025-11-23 03:49:34 -08:00
index/suffixarray
internal internal/trace: correctly handle GoUndetermined for GoroutineSummary 2025-12-11 08:34:39 -08:00
io io: reduce intermediate allocations in ReadAll and have a smaller final result 2025-11-26 20:45:34 -08:00
iter
log
maps maps: use strings.EqualFold in example 2025-11-25 12:24:47 -08:00
math math: switch s390x math.Pow to generic implementation 2025-11-19 13:32:20 -08:00
mime mime: add missing path for mime types in godoc 2025-11-20 13:02:54 -08:00
net all: fix some comment issues 2025-12-05 07:30:36 -08:00
os os: allow direntries to have zero inodes on Linux 2025-11-26 20:42:22 -08:00
path path: add more examples for path.Clean 2025-11-25 12:25:10 -08:00
plugin
reflect reflect: add iterator equivalents for NumField, NumIn, NumOut and NumMethod 2025-11-25 09:18:42 -08:00
regexp
runtime runtime/secret: warn users about allocations, loosen guarantees 2025-12-17 07:29:24 -08:00
simd/archsimd simd/archsimd: reword documentation of As methods 2025-12-17 07:31:27 -08:00
slices slices: fix incorrect comment in slices.Insert function documentation 2025-11-23 03:35:46 -08:00
sort cmd/internal/obj/arm64, image/gif, runtime, sort: use math/bits to calculate log2 2025-11-23 03:49:34 -08:00
strconv
strings
structs
sync
syscall os: allow direntries to have zero inodes on Linux 2025-11-26 20:42:22 -08:00
testdata
testing crypto,testing/cryptotest: ignore random io.Reader params, add SetGlobalRandom 2025-11-26 16:01:17 -08:00
text text/template: fix slice builtin for pointers to arrays 2025-12-15 09:04:58 -08:00
time
unicode
unique
unsafe
vendor all: update to x/crypto@7dacc380ba 2025-12-10 13:47:24 -08:00
weak weak: fix weak pointer test to correctly iterate over weak pointers after GC 2025-12-08 14:39:36 -08:00
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod all: update to x/crypto@7dacc380ba 2025-12-10 13:47:24 -08:00
go.sum all: update to x/crypto@7dacc380ba 2025-12-10 13:47:24 -08:00
make.bash
make.bat
Make.dist
make.rc
race.bash
race.bat
README.vendor
run.bash
run.bat
run.rc

Vendoring in std and cmd
========================

The Go command maintains copies of external packages needed by the
standard library in the src/vendor and src/cmd/vendor directories.

There are two modules, std and cmd, defined in src/go.mod and
src/cmd/go.mod. When a package outside std or cmd is imported
by a package inside std or cmd, the import path is interpreted
as if it had a "vendor/" prefix. For example, within "crypto/tls",
an import of "golang.org/x/crypto/cryptobyte" resolves to
"vendor/golang.org/x/crypto/cryptobyte". When a package with the
same path is imported from a package outside std or cmd, it will
be resolved normally. Consequently, a binary may be built with two
copies of a package at different versions if the package is
imported normally and vendored by the standard library.

Vendored packages are internally renamed with a "vendor/" prefix
to preserve the invariant that all packages have distinct paths.
This is necessary to avoid compiler and linker conflicts. Adding
a "vendor/" prefix also maintains the invariant that standard
library packages begin with a dotless path element.

The module requirements of std and cmd do not influence version
selection in other modules. They are only considered when running
module commands like 'go get' and 'go mod vendor' from a directory
in GOROOT/src.

Maintaining vendor directories
==============================

Before updating vendor directories, ensure that module mode is enabled.
Make sure that GO111MODULE is not set in the environment, or that it is
set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.

Also, ensure that 'go env GOROOT' shows the root of this Go source
tree. Otherwise, the results are undefined. It's recommended to build
Go from source and use that 'go' binary to update its source tree.

Requirements may be added, updated, and removed with 'go get'.
The vendor directory may be updated with 'go mod vendor'.
A typical sequence might be:

    cd src  # or src/cmd
    go get golang.org/x/net@master
    go mod tidy
    go mod vendor

Use caution when passing '-u' to 'go get'. The '-u' flag updates
modules providing all transitively imported packages, not only
the module providing the target package.

Note that 'go mod vendor' only copies packages that are transitively
imported by packages in the current module. If a new package is needed,
it should be imported before running 'go mod vendor'.