mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
Bump to Buildah v1.27.0
As the title says. Vendor Buildah v1.27.0 into Podman in preparation for Buildah v4.2 [No New Tests Needed] Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
19
vendor/github.com/containers/buildah/pkg/util/version_unix.go
generated
vendored
Normal file
19
vendor/github.com/containers/buildah/pkg/util/version_unix.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
//go:build linux || freebsd || darwin
|
||||
// +build linux freebsd darwin
|
||||
|
||||
package util
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func ReadKernelVersion() (string, error) {
|
||||
var uname unix.Utsname
|
||||
if err := unix.Uname(&uname); err != nil {
|
||||
return "", err
|
||||
}
|
||||
n := bytes.IndexByte(uname.Release[:], 0)
|
||||
return string(uname.Release[:n]), nil
|
||||
}
|
||||
Reference in New Issue
Block a user