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

@ -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, `\`) {