mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.unified] all: merge master (8e1e64c) into dev.unified
Conflicts: - test/run.go Conflicts in the known-fails list, plus removed a test from the known-fails that now works. Merge List: + 2022-07-198e1e64c16acmd/compile: fix mknode script + 2022-07-1928be440d34A+C: add Weizhi Yan + 2022-07-1985a482fc24runtime: revert to using the precomputed trigger for pacer calculations + 2022-07-19ae7340ab68CONTRIBUTORS: update for the Go 1.19 release + 2022-07-18de8101d21bruntime: fix typos + 2022-07-18967a3d985dcmd/compile: revert "remove -installsuffix flag" + 2022-07-18c0c1bbde17http: improve Get documentation + 2022-07-152aa473cc54go/types, types2: correct alignment of atomic.Int64 + 2022-07-154651ebf961encoding/gob: s/TestIngoreDepthLimit/TestIgnoreDepthLimit/ + 2022-07-14dc00aed6dego/parser: skip TestParseDepthLimit for short tests + 2022-07-14783ff7dfc4encoding/xml: skip TestCVE202230633 for short tests + 2022-07-14aa80228526cmd/go/internal/modfetch: avoid duplicating path components in Git fetch errors + 2022-07-14b9d5a25442cmd/go: save zip sums for downloaded modules in 'go mod download' in a workspace + 2022-07-14a906d3dd09cmd/go: avoid re-enqueuing workspace dependencies with errors + 2022-07-14266c70c263doc/go1.19: add a release note for 'go list -json=SomeField' + 2022-07-13558785a0a9cmd/compile: remove -installsuffix flag + 2022-07-131355ea3045cmd/compile: remove -importmap flag + 2022-07-13f71f3d1b86misc/cgo/testshared: run tests only in GOPATH mode + 2022-07-13feada53661misc/cgo/testcshared: don't rely on an erroneous install target in tests + 2022-07-13c006b7ac27runtime: clear timerModifiedEarliest when last timer is deleted + 2022-07-13923740a8cccmd/compile: fix type assert in dict pass + 2022-07-12bf2ef26be3cmd/go: in script tests, avoid checking non-main packages for staleness + 2022-07-125f5cae7200cmd/go: avoid indexing GOROOT packages when the compiler is 'gccgo' + 2022-07-12c2edb2c841cmd/go: port TestIssue16471 to a script test and add verbose logging + 2022-07-129c2526e637cmd/go/internal/modfetch/codehost: add missing newline in '# lock' log message + 2022-07-1285486bcccbimage/jpeg: increase TestLargeImageWithShortData timeout by an order of magnitude + 2022-07-1227794c4d4acmd/go/internal/modload: ignore disallowed errors when checking for updates + 2022-07-12b2b8872c87compress/gzip: fix stack exhaustion bug in Reader.Read + 2022-07-12ac68c6c683path/filepath: fix stack exhaustion in Glob + 2022-07-12fa2d41d0caio/fs: fix stack exhaustion in Glob + 2022-07-126fa37e98eaencoding/gob: add a depth limit for ignored fields + 2022-07-12695be961d5go/parser: limit recursion depth + 2022-07-1208c46ed43dencoding/xml: use iterative Skip, rather than recursive + 2022-07-12c4c1993fd2encoding/xml: limit depth of nesting in unmarshal + 2022-07-12913d05133ccmd/go: avoid spurious readdir during fsys.Walk + 2022-07-12d3d7998756net/http: clarify that MaxBytesReader returns *MaxBytesError + 2022-07-11126c22a098syscall: gofmt after CL 412114 + 2022-07-11123a6328b7internal/trace: don't report regions on system goroutines + 2022-07-11846490110aruntime/race: update amd64 syso images to avoid sse4 + 2022-07-11b75ad09caecmd/trace: fix typo in web documentation + 2022-07-117510e597decmd/go: make module index loading O(1) + 2022-07-11b8bf820d5dcmd/nm: don't rely on an erroneous install target in tests + 2022-07-11ad641e8521misc/cgo/testcarchive: don't rely on an erroneous install target in tests + 2022-07-11bf5898ef53net/url: use EscapedPath for url.JoinPath + 2022-07-11398dcd1cf0database/sql: make TestTxContextWaitNoDiscard test more robust + 2022-07-11f956941b0fcmd/go: use package index for std in load.loadPackageData + 2022-07-1159ab6f351anet/http: remove Content-Encoding in writeNotModified + 2022-07-08c1a4e0fe01cmd/compile: fix libfuzzer instrumentation line number + 2022-07-085c1a13e7a4cmd/go: avoid setting variables for '/' and ':' in TestScript subprocess environments + 2022-07-08180bcad33dnet/http: wait for listeners to exit in Server.Close and Shutdown + 2022-07-0814abe8aa73cmd/compile: don't convert to interface{} for un-comparable types in generic switch + 2022-07-071ebc983000runtime: overestimate the amount of allocated memory in heapLive + 2022-07-07c177d9d98acrypto/x509: restrict CRL number to <=20 octets + 2022-07-07486fc01770crypto/x509: correctly parse CRL entry extensions + 2022-07-078ac58de185crypto/x509: populate Number and AKI of parsed CRLs + 2022-07-070c7fcf6bd1cmd/link: explicitly disable PIE for windows/amd64 -race mode + 2022-07-07eaf2125654cmd/go: default to "exe" build mode for windows -race + 2022-07-061243ec9c17cmd/compile: only check implicit dots for method call enabled by a type bound + 2022-07-06c391156f96cmd/go: set up git identity for build_buildvcs_auto.txt + 2022-07-062acd3646fccmd/compile: rework induction variable detector + 2022-07-0653a4152d47os/exec: clarify that Wait must be called + 2022-07-06177306f630cmd/internal/notsha256: add purego tag as needed + 2022-07-06f4755fc733cmd/dist: use purego tag when building the bootstrap binaries + 2022-07-064484c30f78misc/cgo/test: make TestSetgidStress cheaper + 2022-07-062007599dc8test: recognize new gofrontend error message + 2022-07-05d602380f58cmd/compile: drop "buildcfg" from no instrument packages + 2022-07-05c111091071cmd/go: make module@nonexistentversion failures reusable + 2022-07-055f305ae8e5cmd/go: add -reuse flag to make proxy invocations more efficient + 2022-07-0584e091eef0cmd/go: record origin metadata during module download + 2022-07-04ceda93ed67build/constraint: update doc to mention a feature added in Go 1.17 + 2022-07-043cf79d9610runtime: pass correct string to exits on Plan 9 + 2022-07-01e822b1e26enet/http: omit invalid header value from error message + 2022-07-014a2a3bca18cmd/go, go/build: clarify build constraint docs + 2022-07-019a4d5357f4flag: highlight support for double dashes in docs + 2022-07-01c847a2c9f0go/types, types2: document that exported predicates are unspecified for invalid type arguments + 2022-06-30405c269b85go/types, types2: re-enable a couple of commented out tests + 2022-06-30aad9382e59go/doc/comment: support links in lists in comments + 2022-06-30af725f4286os: fix a typo in path_windows.go Change-Id: I381728322188aca0bfa81a946d6aedda8c07903c
This commit is contained in:
commit
de649a2a98
143 changed files with 3596 additions and 1032 deletions
|
|
@ -100,7 +100,6 @@ type CmdFlags struct {
|
|||
GenDwarfInl int "help:\"generate DWARF inline info records\"" // 0=disabled, 1=funcs, 2=funcs+formals/locals
|
||||
GoVersion string "help:\"required version of the runtime\""
|
||||
ImportCfg func(string) "help:\"read import configuration from `file`\""
|
||||
ImportMap func(string) "help:\"add `definition` of the form source=actual to import map\""
|
||||
InstallSuffix string "help:\"set pkg directory `suffix`\""
|
||||
JSON string "help:\"version,file for JSON compiler/optimizer detail output\""
|
||||
Lang string "help:\"Go language version source code expects\""
|
||||
|
|
@ -130,7 +129,7 @@ type CmdFlags struct {
|
|||
Files map[string]string
|
||||
}
|
||||
ImportDirs []string // appended to by -I
|
||||
ImportMap map[string]string // set by -importmap OR -importcfg
|
||||
ImportMap map[string]string // set by -importcfg
|
||||
PackageFile map[string]string // set by -importcfg; nil means not in use
|
||||
SpectreIndex bool // set by -spectre=index or -spectre=all
|
||||
// Whether we are adding any sort of code instrumentation, such as
|
||||
|
|
@ -156,7 +155,6 @@ func ParseFlags() {
|
|||
Flag.EmbedCfg = readEmbedCfg
|
||||
Flag.GenDwarfInl = 2
|
||||
Flag.ImportCfg = readImportCfg
|
||||
Flag.ImportMap = addImportMap
|
||||
Flag.LinkShared = &Ctxt.Flag_linkshared
|
||||
Flag.Shared = &Ctxt.Flag_shared
|
||||
Flag.WB = true
|
||||
|
|
@ -389,21 +387,6 @@ func addImportDir(dir string) {
|
|||
}
|
||||
}
|
||||
|
||||
func addImportMap(s string) {
|
||||
if Flag.Cfg.ImportMap == nil {
|
||||
Flag.Cfg.ImportMap = make(map[string]string)
|
||||
}
|
||||
if strings.Count(s, "=") != 1 {
|
||||
log.Fatal("-importmap argument must be of the form source=actual")
|
||||
}
|
||||
i := strings.Index(s, "=")
|
||||
source, actual := s[:i], s[i+1:]
|
||||
if source == "" || actual == "" {
|
||||
log.Fatal("-importmap argument must be of the form source=actual; source and actual must be non-empty")
|
||||
}
|
||||
Flag.Cfg.ImportMap[source] = actual
|
||||
}
|
||||
|
||||
func readImportCfg(file string) {
|
||||
if Flag.Cfg.ImportMap == nil {
|
||||
Flag.Cfg.ImportMap = make(map[string]string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue