mirror of
https://github.com/mudler/luet.git
synced 2025-09-24 04:34:46 +00:00
bump github.com/moby/buildkit to v0.13.0 (#351)
* bump github.com/moby/buildkit to v0.13.0 Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * fix: update dep usage based on newer version Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * remove empty line Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> * ci: bump golang to 1.21.x * Bump moby * debug --------- Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com> Co-authored-by: Nianyu Shen <nianyu@spectrocloud.com>
This commit is contained in:
committed by
GitHub
parent
c47bf4833a
commit
4c788ccbd1
1
vendor/github.com/Microsoft/hcsshim/internal/hcserror/doc.go
generated
vendored
Normal file
1
vendor/github.com/Microsoft/hcsshim/internal/hcserror/doc.go
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
package hcserror
|
19
vendor/github.com/Microsoft/hcsshim/internal/hcserror/hcserror.go
generated
vendored
19
vendor/github.com/Microsoft/hcsshim/internal/hcserror/hcserror.go
generated
vendored
@@ -1,11 +1,13 @@
|
||||
//go:build windows
|
||||
|
||||
package hcserror
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
const ERROR_GEN_FAILURE = syscall.Errno(31)
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
type HcsError struct {
|
||||
title string
|
||||
@@ -30,18 +32,21 @@ func (e *HcsError) Error() string {
|
||||
|
||||
func New(err error, title, rest string) error {
|
||||
// Pass through DLL errors directly since they do not originate from HCS.
|
||||
if _, ok := err.(*syscall.DLLError); ok {
|
||||
var e *windows.DLLError
|
||||
if errors.As(err, &e) {
|
||||
return err
|
||||
}
|
||||
return &HcsError{title, rest, err}
|
||||
}
|
||||
|
||||
func Win32FromError(err error) uint32 {
|
||||
if herr, ok := err.(*HcsError); ok {
|
||||
var herr *HcsError
|
||||
if errors.As(err, &herr) {
|
||||
return Win32FromError(herr.Err)
|
||||
}
|
||||
if code, ok := err.(syscall.Errno); ok {
|
||||
var code windows.Errno
|
||||
if errors.As(err, &code) {
|
||||
return uint32(code)
|
||||
}
|
||||
return uint32(ERROR_GEN_FAILURE)
|
||||
return uint32(windows.ERROR_GEN_FAILURE)
|
||||
}
|
||||
|
Reference in New Issue
Block a user