mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.17.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
5
vendor/github.com/moby/buildkit/util/disk/disk_windows.go
generated
vendored
5
vendor/github.com/moby/buildkit/util/disk/disk_windows.go
generated
vendored
@ -4,13 +4,14 @@
|
||||
package disk
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func GetDiskStat(root string) (DiskStat, error) {
|
||||
rootUTF16, err := windows.UTF16FromString(root)
|
||||
if err != nil {
|
||||
return DiskStat{}, err
|
||||
return DiskStat{}, errors.Wrapf(err, "could not encode %s", root)
|
||||
}
|
||||
var (
|
||||
totalBytes uint64
|
||||
@ -22,7 +23,7 @@ func GetDiskStat(root string) (DiskStat, error) {
|
||||
&freeAvailableBytes,
|
||||
&totalBytes,
|
||||
&totalFreeBytes); err != nil {
|
||||
return DiskStat{}, err
|
||||
return DiskStat{}, errors.Wrapf(err, "could not stat fs at %s", root)
|
||||
}
|
||||
|
||||
return DiskStat{
|
||||
|
Reference in New Issue
Block a user