Upgrade to Go 1.18 and re-vendor dependencies

This commit is contained in:
arthur.barr@uk.ibm.com
2023-01-26 16:40:47 +00:00
committed by Arthur Barr
parent f2842d7eee
commit 5c4422badf
448 changed files with 32933 additions and 20696 deletions

View File

@@ -55,12 +55,12 @@ func (fs FS) Crypto() ([]Crypto, error) {
path := fs.proc.Path("crypto")
b, err := util.ReadFileNoStat(path)
if err != nil {
return nil, fmt.Errorf("error reading crypto %s: %s", path, err)
return nil, fmt.Errorf("error reading crypto %q: %w", path, err)
}
crypto, err := parseCrypto(bytes.NewReader(b))
if err != nil {
return nil, fmt.Errorf("error parsing crypto %s: %s", path, err)
return nil, fmt.Errorf("error parsing crypto %q: %w", path, err)
}
return crypto, nil