go/src
2026-06-26 12:19:17 -04:00
..
archive archive/zip: turn off large zip test on 32-bit archs 2026-05-21 09:22:41 -07:00
arena
bufio bufio: fix doc link to Reset method 2026-02-06 09:28:40 -08:00
builtin builtin: incorporate all feedback into doc string for new 2026-02-26 09:14:40 -08:00
bytes bytes, strings: clarify WriteRune return values 2026-06-16 09:03:01 -07:00
cmd go/types, types2: improve error message for incomplete alias hashing 2026-06-25 12:15:19 -07:00
cmp
compress compress/flate: clarify compatibility promise 2026-05-07 09:33:08 -07:00
container
context context: fix package doc description of WithDeadlineCause and WithTimeoutCause 2026-03-17 11:55:36 -07:00
crypto crypto/tls: omit PSK in ECH outer client hello 2026-06-26 09:07:00 -07:00
database/sql database/sql/driver: document RowsColumnScanner interaction with Next 2026-06-11 14:05:24 -07:00
debug all: re-run stringer 2026-06-15 16:41:24 -07:00
embed
encoding encoding/json/v2: report error when unmarshaling into ambiguous set of fields 2026-06-22 14:10:44 -07:00
errors errors: add a test verifying join does not flatten errors 2025-12-23 10:45:53 -08:00
expvar
flag
fmt fmt: fix %q verb documentation to say "rune literal" 2026-06-22 08:05:19 -07:00
go go/types, types2: improve error message for incomplete alias hashing 2026-06-25 12:15:19 -07:00
hash hash/maphash: add BloomFilter example 2026-04-07 15:17:06 -07:00
html all: re-run stringer 2026-06-15 16:41:24 -07:00
image image, image/gif: document DecodeConfig before Decode for untrusted input 2026-05-14 14:41:39 -07:00
index/suffixarray index/suffixarray: fix incorrect condition 2026-05-05 16:30:06 -07:00
internal internal/nettest: fix flake in TestConnPartialWrite 2026-06-24 07:53:39 -07:00
io io/fs: fix godoc to refer to the 'fsys' arg 2026-04-02 08:12:31 -07:00
iter cmd/link: check linkname access to assembly symbols 2026-05-19 13:53:15 -07:00
log log/slog: remove obsolete comment 2026-06-22 09:11:43 -07:00
maps maps: use strings.EqualFold in example 2025-11-25 12:24:47 -08:00
math math/rand/v2: document PCG and ChaCha8 tradeoffs 2026-06-25 17:13:15 -07:00
mime mime: avoid quadratic complexity in WordDecoder.DecodeHeader 2026-05-06 09:56:02 -07:00
net Merge a0b89329c9 into 137b8065ab 2026-06-26 12:19:17 -04:00
os os: test and fix ReadDir("/dev/fd") on macOS 2026-06-25 11:31:32 -07:00
path path/filepath: handle \\?\ and \??\ UNC prefixes in VolumeName 2026-06-12 10:58:22 -07:00
plugin
reflect reflect: linkify the docs for Value.Seq and Value.Seq2 2026-06-01 13:04:45 -07:00
regexp regexp: apply canonicalization to scripts lookup 2026-05-30 03:38:04 -07:00
runtime runtime: lock M for the entire fast path 2026-06-25 12:45:23 -07:00
simd cmd/compile, simd/archsimd: make Wasm Get/SetElem work for out-of-bound constants 2026-06-25 07:53:25 -07:00
slices slices: document that Delete, DeleteFunc, Replace, Insert modify the slice 2026-03-16 15:33:08 -07:00
sort sort: improve comment readability for Stable function 2026-01-15 08:36:28 -08:00
strconv all: update to Unicode 17 2026-01-22 13:16:03 -08:00
strings bytes, strings: clarify WriteRune return values 2026-06-16 09:03:01 -07:00
structs
sync runtime: make lockRank an int64 instead of an int 2026-06-10 18:23:54 -07:00
syscall syscall: add //go:norace to rawSyscall on darwin 2026-06-15 10:13:10 -07:00
testdata
testing runtime: avoid concurrent use of synctest timer race context. 2026-05-07 14:06:47 -07:00
text text/template/parse: respect delims in String representations 2026-06-09 08:30:53 -07:00
time time: uncomment t.Fatalf call in a test 2026-05-26 10:37:58 -07:00
unicode all: update to Unicode 17 2026-01-22 13:16:03 -08:00
unique unique: fix inconsistent panic prefix in canonmap cleanup path 2025-10-23 13:42:09 -07:00
unsafe
uuid uuid: new package for generating and parsing UUIDs 2026-04-21 08:37:26 -07:00
vendor all: update vendored dependencies 2026-05-26 10:11:40 -07: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.{bash,rc}: use "../bin/go tool dist" instead of "%GOTOOLDIR%/dist" print build info 2025-06-10 06:00:41 -07:00
all.bat
all.rc all.{bash,rc}: use "../bin/go tool dist" instead of "%GOTOOLDIR%/dist" print build info 2025-06-10 06:00:41 -07:00
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod all: update vendored dependencies 2026-05-26 10:11:40 -07:00
go.sum all: update vendored dependencies 2026-05-26 10:11:40 -07:00
make.bash cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
make.bat cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
Make.dist
make.rc cmd/dist: require Go 1.24.6 as minimum bootstrap toolchain 2025-08-11 14:25:55 -07:00
race.bash runtime/race: add race detector support for linux/riscv64 2025-08-29 23:57:12 -07:00
race.bat
README.vendor README.vendor: document release cycle considerations 2026-01-26 12:37:19 -08:00
run.bash cmd/dist: add GO_TEST_ASMFLAGS to set -asmflags during dist test 2026-03-25 07:58:43 -07:00
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'.
Tree inconsistencies are reported by 'go test cmd/internal/moddeps'.
A typical sequence might be:

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

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'.

Go release cycle considerations
===============================

Applying changes to packages that are vendored follows the considerations
written down at go.dev/s/release.

When the Go tree is open for development, a specific change may be pulled in
at any time that it is needed. During the release freeze, the bar for changes
in vendored packages is the same as it is for changes in non-vendored packages.
After a major release is out, minor Go releases follow a more involved process
documented at go.dev/wiki/MinorReleases#cherry-pick-cls-for-vendored-golangorgx-packages.

In addition to individual updates that happen on demand, all dependencies in
the std and cmd modules are updated to their latest available versions at least
twice during every major release cycle. This is done to avoid the possibility of
some dependencies being left on very old versions and in turn make their eventual
update more disruptive. This recurring process is tracked in go.dev/issue/36905.
The golang.org/x/build/cmd/updatestd command exists to assist with that process.