mirror of
https://github.com/containers/skopeo.git
synced 2025-09-26 20:53:16 +00:00
Update module github.com/containers/storage to v1.47.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
2
vendor/github.com/containers/storage/pkg/chrootarchive/archive.go
generated
vendored
2
vendor/github.com/containers/storage/pkg/chrootarchive/archive.go
generated
vendored
@@ -77,7 +77,7 @@ func untarHandler(tarArchive io.Reader, dest string, options *archive.TarOptions
|
||||
|
||||
dest = filepath.Clean(dest)
|
||||
if _, err := os.Stat(dest); os.IsNotExist(err) {
|
||||
if err := idtools.MkdirAllAndChownNew(dest, 0755, rootIDs); err != nil {
|
||||
if err := idtools.MkdirAllAndChownNew(dest, 0o755, rootIDs); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
3
vendor/github.com/containers/storage/pkg/chrootarchive/archive_darwin.go
generated
vendored
3
vendor/github.com/containers/storage/pkg/chrootarchive/archive_darwin.go
generated
vendored
@@ -8,7 +8,8 @@ import (
|
||||
|
||||
func invokeUnpack(decompressedArchive io.Reader,
|
||||
dest string,
|
||||
options *archive.TarOptions, root string) error {
|
||||
options *archive.TarOptions, root string,
|
||||
) error {
|
||||
return archive.Unpack(decompressedArchive, dest, options)
|
||||
}
|
||||
|
||||
|
4
vendor/github.com/containers/storage/pkg/chrootarchive/archive_unix.go
generated
vendored
4
vendor/github.com/containers/storage/pkg/chrootarchive/archive_unix.go
generated
vendored
@@ -27,7 +27,7 @@ func untar() {
|
||||
|
||||
var options archive.TarOptions
|
||||
|
||||
//read the options from the pipe "ExtraFiles"
|
||||
// read the options from the pipe "ExtraFiles"
|
||||
if err := json.NewDecoder(os.NewFile(3, "options")).Decode(&options); err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
@@ -99,7 +99,7 @@ func invokeUnpack(decompressedArchive io.Reader, dest string, options *archive.T
|
||||
return fmt.Errorf("untar error on re-exec cmd: %w", err)
|
||||
}
|
||||
|
||||
//write the options to the pipe for the untar exec to read
|
||||
// write the options to the pipe for the untar exec to read
|
||||
if err := json.NewEncoder(w).Encode(options); err != nil {
|
||||
w.Close()
|
||||
return fmt.Errorf("untar json encode to pipe failed: %w", err)
|
||||
|
3
vendor/github.com/containers/storage/pkg/chrootarchive/archive_windows.go
generated
vendored
3
vendor/github.com/containers/storage/pkg/chrootarchive/archive_windows.go
generated
vendored
@@ -14,7 +14,8 @@ func chroot(path string) error {
|
||||
|
||||
func invokeUnpack(decompressedArchive io.Reader,
|
||||
dest string,
|
||||
options *archive.TarOptions, root string) error {
|
||||
options *archive.TarOptions, root string,
|
||||
) error {
|
||||
// Windows is different to Linux here because Windows does not support
|
||||
// chroot. Hence there is no point sandboxing a chrooted process to
|
||||
// do the unpack. We call inline instead within the daemon process.
|
||||
|
1
vendor/github.com/containers/storage/pkg/chrootarchive/diff_unix.go
generated
vendored
1
vendor/github.com/containers/storage/pkg/chrootarchive/diff_unix.go
generated
vendored
@@ -26,7 +26,6 @@ type applyLayerResponse struct {
|
||||
// used on Windows as it does not support chroot, hence no point sandboxing
|
||||
// through chroot and rexec.
|
||||
func applyLayer() {
|
||||
|
||||
var (
|
||||
tmpDir string
|
||||
err error
|
||||
|
Reference in New Issue
Block a user