1
0
mirror of https://github.com/golang/go synced 2024-09-29 18:34:33 -06:00
go/src
Martin Möhrmann c155931974 internal/cpu: add darwin/arm64 CPU feature detection support
Fixes #42747

Change-Id: I6b1679348c77161f075f0678818bb003fc0e8c86
Reviewed-on: https://go-review.googlesource.com/c/go/+/271989
Trust: Martin Möhrmann <moehrmann@google.com>
Run-TryBot: Martin Möhrmann <martisch@uos.de>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2020-12-07 07:59:54 +00:00
..
archive archive/zip: fix documentation to mention fs.FS interface 2020-11-07 03:52:47 +00:00
bufio bufio: make string(int) conversion safer 2020-11-28 03:50:50 +00:00
builtin
bytes bytes: add example for (*Buffer).Bytes 2020-11-11 20:51:00 +00:00
cmd syscall: correct CertOpenStore to expect a 0 return value on failure 2020-12-05 12:36:42 +00:00
compress all: update to use filepath.WalkDir instead of filepath.Walk 2020-12-02 16:33:57 +00:00
container
context
crypto crypto/ed25519/internal/edwards25519: fix typo in comments 2020-12-02 20:17:57 +00:00
database/sql
debug
embed io/fs: add Sub 2020-12-04 16:49:30 +00:00
encoding encoding/json: revert "add "json: " prefix to SyntaxError messages" 2020-12-01 22:51:45 +00:00
errors
expvar
flag
fmt
go go/parser: ignore subdirectories in ParseDir 2020-12-02 23:05:56 +00:00
hash
html encoding/json: revert "add "json: " prefix to SyntaxError messages" 2020-12-01 22:51:45 +00:00
image
index/suffixarray all: update to use filepath.WalkDir instead of filepath.Walk 2020-12-02 16:33:57 +00:00
internal internal/cpu: add darwin/arm64 CPU feature detection support 2020-12-07 07:59:54 +00:00
io io/fs: add Sub 2020-12-04 16:49:30 +00:00
log log: make Default doc comment consistent with package doc 2020-11-26 21:10:09 +00:00
math math/big: remove the s390x assembly for shlVU and shrVU 2020-12-03 18:43:06 +00:00
mime mime/multipart: handle ReadForm(math.MaxInt64) better 2020-12-03 16:05:09 +00:00
net mime/multipart: handle ReadForm(math.MaxInt64) better 2020-12-03 16:05:09 +00:00
os io/fs: add Sub 2020-12-04 16:49:30 +00:00
path io/fs: add WalkDir 2020-11-06 19:42:05 +00:00
plugin
reflect reflect: fix Value.Convert for int-to-string conversions (regression) 2020-11-26 05:00:21 +00:00
regexp regexp/syntax: add note about Unicode character classes 2020-11-25 15:10:09 +00:00
runtime internal/cpu: add darwin/arm64 CPU feature detection support 2020-12-07 07:59:54 +00:00
sort
strconv strconv: revert ParseFloat/ParseComplex error on incorrect bitSize 2020-11-03 23:05:51 +00:00
strings
sync sync: use 386 instead of x86-32 to refer to the 32 bit x86 architecture 2020-11-23 05:57:35 +00:00
syscall syscall: correct CertOpenStore to expect a 0 return value on failure 2020-12-05 12:36:42 +00:00
testdata
testing io/fs: add Sub 2020-12-04 16:49:30 +00:00
text
time runtime, time: strictly enforce when, period constraints 2020-12-03 21:23:16 +00:00
unicode
unsafe
vendor syscall: correct CertOpenStore to expect a 0 return value on failure 2020-12-05 12:36:42 +00:00
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod syscall: correct CertOpenStore to expect a 0 return value on failure 2020-12-05 12:36:42 +00:00
go.sum syscall: correct CertOpenStore to expect a 0 return value on failure 2020-12-05 12:36:42 +00:00
make.bash
make.bat
Make.dist
make.rc
race.bash race.bash: add darwin/arm64 2020-11-04 21:02:29 +00:00
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.

In GOPATH mode, imports of vendored packages are resolved to these
directories following normal vendor directory logic
(see golang.org/s/go15vendor).

In module mode, std and cmd are modules (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 GO111MODULE=off is not set ('on' or 'auto' should work).

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
    go get -d golang.org/x/net@latest
    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'.