update to latest golang.org/x/crypto

This commit is contained in:
Mechiel Lukkien
2023-03-06 08:35:57 +01:00
parent b2e6c29849
commit ba75c73716
129 changed files with 2088 additions and 1512 deletions

View File

@ -494,7 +494,7 @@ func (in *input) endToken(kind tokenKind) {
in.token.endPos = in.pos
}
// peek returns the kind of the the next token returned by lex.
// peek returns the kind of the next token returned by lex.
func (in *input) peek() tokenKind {
return in.token.kind
}

View File

@ -513,6 +513,9 @@ func parseReplace(filename string, line *Line, verb string, args []string, fix V
nv := ""
if len(args) == arrow+2 {
if !IsDirectoryPath(ns) {
if strings.Contains(ns, "@") {
return nil, errorf("replacement module must match format 'path version', not 'path@version'")
}
return nil, errorf("replacement module without version must be directory path (rooted or starting with ./ or ../)")
}
if filepath.Separator == '/' && strings.Contains(ns, `\`) {

View File

@ -96,13 +96,13 @@ package module
// Changes to the semantics in this file require approval from rsc.
import (
"errors"
"fmt"
"path"
"sort"
"strings"
"unicode"
"unicode/utf8"
"errors"
"golang.org/x/mod/semver"
)
@ -258,7 +258,7 @@ func modPathOK(r rune) bool {
return false
}
// modPathOK reports whether r can appear in a package import path element.
// importPathOK reports whether r can appear in a package import path element.
//
// Import paths are intermediate between module paths and file paths: we allow
// disallow characters that would be confusing or ambiguous as arguments to