mirror of
https://github.com/containers/podman.git
synced 2025-12-08 23:00:23 +08:00
Vendor in latest github.com/containers/storage,image, buildah
Grab latest fixes from subpackages Including fixes for usernamespace chowning retaining file attributes Better logging of error messages. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
7
vendor/github.com/containers/buildah/imagebuildah/build.go
generated
vendored
7
vendor/github.com/containers/buildah/imagebuildah/build.go
generated
vendored
@@ -325,6 +325,9 @@ func (b *Executor) Preserve(path string) error {
|
||||
archivedPath := filepath.Join(b.mountPoint, cachedPath)
|
||||
logrus.Debugf("no longer need cache of %q in %q", archivedPath, b.volumeCache[cachedPath])
|
||||
if err := os.Remove(b.volumeCache[cachedPath]); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
continue
|
||||
}
|
||||
return errors.Wrapf(err, "error removing %q", b.volumeCache[cachedPath])
|
||||
}
|
||||
delete(b.volumeCache, cachedPath)
|
||||
@@ -343,6 +346,9 @@ func (b *Executor) volumeCacheInvalidate(path string) error {
|
||||
}
|
||||
for _, cachedPath := range invalidated {
|
||||
if err := os.Remove(b.volumeCache[cachedPath]); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
continue
|
||||
}
|
||||
return errors.Wrapf(err, "error removing volume cache %q", b.volumeCache[cachedPath])
|
||||
}
|
||||
archivedPath := filepath.Join(b.mountPoint, cachedPath)
|
||||
@@ -1125,6 +1131,7 @@ func (b *Executor) Commit(ctx context.Context, ib *imagebuilder.Builder, created
|
||||
AdditionalTags: b.additionalTags,
|
||||
ReportWriter: writer,
|
||||
PreferredManifestType: b.outputFormat,
|
||||
SystemContext: b.systemContext,
|
||||
IIDFile: b.iidfile,
|
||||
Squash: b.squash,
|
||||
Parent: b.builder.FromImageID,
|
||||
|
||||
Reference in New Issue
Block a user