update to latest golang.org/x dependencies

This commit is contained in:
Mechiel Lukkien
2025-04-16 20:01:32 +02:00
parent 1b2b152cb5
commit 805ae0d827
35 changed files with 1023 additions and 413 deletions

View File

@ -193,10 +193,7 @@ func Read(in io.Reader, fset *token.FileSet, imports map[string]*types.Package,
return pkg, err
default:
l := len(data)
if l > 10 {
l = 10
}
l := min(len(data), 10)
return nil, fmt.Errorf("unexpected export data with prefix %q for path %s", string(data[:l]), path)
}
}