mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.16.0-rc1
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
23
vendor/github.com/moby/buildkit/errdefs/internal_linux.go
generated
vendored
Normal file
23
vendor/github.com/moby/buildkit/errdefs/internal_linux.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package errdefs
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
// syscallErrors returns a map of syscall errors that are considered internal.
|
||||
// value is true if the error is of type resource exhaustion, false otherwise.
|
||||
func syscallErrors() map[syscall.Errno]bool {
|
||||
return map[syscall.Errno]bool{
|
||||
unix.EIO: false, // I/O error
|
||||
unix.ENOMEM: true, // Out of memory
|
||||
unix.EFAULT: false, // Bad address
|
||||
unix.ENOSPC: true, // No space left on device
|
||||
unix.ENOTRECOVERABLE: false, // State not recoverable
|
||||
unix.EHWPOISON: false, // Memory page has hardware error
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user