mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 15:44:37 +03:00
update to latest golang.org/x/crypto
This commit is contained in:
2
vendor/golang.org/x/mod/modfile/read.go
generated
vendored
2
vendor/golang.org/x/mod/modfile/read.go
generated
vendored
@ -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
|
||||
}
|
||||
|
3
vendor/golang.org/x/mod/modfile/rule.go
generated
vendored
3
vendor/golang.org/x/mod/modfile/rule.go
generated
vendored
@ -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, `\`) {
|
||||
|
Reference in New Issue
Block a user