fix(deps): update module github.com/containers/storage to v1.44.0

Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
renovate[bot]
2022-11-08 19:50:20 +00:00
committed by GitHub
parent cf29c73079
commit 563c91a2fd
151 changed files with 3061 additions and 2674 deletions

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
// Package kernel provides helper function to get, parse and compare kernel

View File

@@ -43,7 +43,7 @@ func getRelease() (string, error) {
prettyNames, err := shellwords.Parse(content[1])
if err != nil {
return "", fmt.Errorf("kernel version is invalid: %s", err.Error())
return "", fmt.Errorf("kernel version is invalid: %w", err)
}
if len(prettyNames) != 2 {

View File

@@ -1,3 +1,4 @@
//go:build linux || freebsd || solaris || openbsd
// +build linux freebsd solaris openbsd
// Package kernel provides helper function to get, parse and compare kernel

View File

@@ -1,3 +1,4 @@
//go:build windows
// +build windows
package kernel

View File

@@ -1,4 +1,5 @@
// +build !linux,!solaris
//go:build freebsd || openbsd
// +build freebsd openbsd
package kernel
@@ -6,13 +7,7 @@ import (
"errors"
)
// Utsname represents the system name structure.
// It is defined here to make it portable as it is available on linux but not
// on windows.
type Utsname struct {
Release [65]byte
}
// A stub called by kernel_unix.go .
func uname() (*Utsname, error) {
return nil, errors.New("Kernel version detection is available only on linux")
}

View File

@@ -0,0 +1,11 @@
//go:build !linux && !solaris
// +build !linux,!solaris
package kernel
// Utsname represents the system name structure.
// It is defined here to make it portable as it is available on linux but not
// on windows.
type Utsname struct {
Release [65]byte
}