]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/vendor: vendor latest golang.org/x/mod
authorRuss Cox <rsc@golang.org>
Mon, 5 Jun 2023 02:33:50 +0000 (22:33 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2023 19:18:21 +0000 (19:18 +0000)
Incorporate CL 501035 for toolchain syntax changes
and a fix to a race (harmless outside tests) in sumdb client.

go get golang.org/x/mod@62c7e578 # CL 501035
go mod tidy
go mod vendor

This CL will break the cmd/go tests. The next CL fixes them.

For #57001.

Change-Id: I1fcb9799417595ecff870367f256cbc0a488934c
Reviewed-on: https://go-review.googlesource.com/c/go/+/500796
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Bypass: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go.mod
src/cmd/go.sum
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
src/cmd/vendor/golang.org/x/mod/sumdb/client.go
src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go
src/cmd/vendor/golang.org/x/mod/sumdb/server.go
src/cmd/vendor/modules.txt

index 32da6ff3de73f4bb95b00db7385e1d6bf1d7fd16..12feee05b6bc02b9d6fcbf8aa183301d0f9b38ae 100644 (file)
@@ -5,7 +5,7 @@ go 1.21
 require (
        github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26
        golang.org/x/arch v0.3.0
-       golang.org/x/mod v0.10.1-0.20230523205221-fc83a8faf993
+       golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7
        golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c
        golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc
        golang.org/x/term v0.8.0
index 2af241c78ac84b5d0a339443520667625309fe37..54a7d8665865164ee1dbcd5f27cfc934a51c5fcc 100644 (file)
@@ -4,8 +4,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2 h1:rcanfLh
 github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
 golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k=
 golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
-golang.org/x/mod v0.10.1-0.20230523205221-fc83a8faf993 h1:hr4tBhz2ITxV3Dj4xUzXUVtuRnMSzdWcTF8JYcrbdGs=
-golang.org/x/mod v0.10.1-0.20230523205221-fc83a8faf993/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7 h1:OSEstGpBW1+G0wiXI0bBgOnI8nRJQKX3GCNxF75VR1s=
+golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
 golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c h1:w3VOlmQViynAglgPijJYTjrryY2u09i59amSGCFck24=
 golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
 golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc h1:p4WpFbnzwh0EhIaGMueCjfMUkyWX6WQcJfxbS7GOQtQ=
index 39f03f26c16c3c0c96bca6d296985cc25be9346d..b4dd7997b67a327dfb744eda788db6581c13f254 100644 (file)
@@ -306,9 +306,9 @@ func parseToFile(file string, data []byte, fix VersionFixer, strict bool) (parse
 var GoVersionRE = lazyregexp.New(`^([1-9][0-9]*)\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))?([a-z]+[0-9]+)?$`)
 var laxGoVersionRE = lazyregexp.New(`^v?(([1-9][0-9]*)\.(0|[1-9][0-9]*))([^0-9].*)$`)
 
-// Toolchains must be named beginning with `go1` or containing `-go1` as a substring,
-// like "go1.20.3" or "gccgo-go1.20.3". As a special case, "local" is also permitted.
-var ToolchainRE = lazyregexp.New(`^local$|(^|-)go1`)
+// Toolchains must be named beginning with `go1`,
+// like "go1.20.3" or "go1.20.3-gccgo". As a special case, "default" is also permitted.
+var ToolchainRE = lazyregexp.New(`^default$|^go1($|\.)`)
 
 func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, args []string, fix VersionFixer, strict bool) {
        // If strict is false, this module is a dependency.
index 70dd56f1037e349ec7c980bb2fbd3f0909f19d3f..1c1b0297f0e3162cd285bfe88b350fbb10c57735 100644 (file)
@@ -109,7 +109,7 @@ func NewClient(ops ClientOps) *Client {
        }
 }
 
-// init initiailzes the client (if not already initialized)
+// init initializes the client (if not already initialized)
 // and returns any initialization error.
 func (c *Client) init() error {
        c.initOnce.Do(c.initWork)
@@ -553,6 +553,11 @@ func (r *tileReader) ReadTiles(tiles []tlog.Tile) ([][]byte, error) {
                wg.Add(1)
                go func(i int, tile tlog.Tile) {
                        defer wg.Done()
+                       defer func() {
+                               if e := recover(); e != nil {
+                                       errs[i] = fmt.Errorf("panic: %v", e)
+                               }
+                       }()
                        data[i], errs[i] = r.c.readTile(tile)
                }(i, tile)
        }
index 140b937005216a238259f772ac0148dfe2226837..8c22b19d31929454c18c285dc08cca48fb46ffed 100644 (file)
 // not contain spaces or newlines).
 //
 // If Open is given access to a Verifiers including the
-// Verifier for this key, then it will succeed at verifiying
+// Verifier for this key, then it will succeed at verifying
 // the encoded message and returning the parsed Note:
 //
 //     vkey := "PeterNeumann+c74f20a3+ARpc2QcUPDhMQegwxbzhKqiBfsVkmqq/LDE4izWy10TW"
index 2e523a566d5b66d11c23ddd6839b3e0b0a37f2e9..899bd462bcb079773cf4eda15f290d15031fa137 100644 (file)
@@ -148,6 +148,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
                                msg, err := tlog.FormatRecord(start+int64(i), text)
                                if err != nil {
                                        http.Error(w, err.Error(), http.StatusInternalServerError)
+                                       return
                                }
                                data = append(data, msg...)
                        }
index 9cf8077e5a0bb14d3887e1ded3870fa38d5c8dc5..283ace8e65b39ffb2a2be1e24c60b89f859fae5f 100644 (file)
@@ -23,7 +23,7 @@ golang.org/x/arch/arm/armasm
 golang.org/x/arch/arm64/arm64asm
 golang.org/x/arch/ppc64/ppc64asm
 golang.org/x/arch/x86/x86asm
-# golang.org/x/mod v0.10.1-0.20230523205221-fc83a8faf993
+# golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7
 ## explicit; go 1.17
 golang.org/x/mod/internal/lazyregexp
 golang.org/x/mod/modfile