mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Bump Buildah to v1.8.1, ImageBuilder to v1.1.0
As the title suggests. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
9
vendor/github.com/containers/buildah/imagebuildah/build.go
generated
vendored
9
vendor/github.com/containers/buildah/imagebuildah/build.go
generated
vendored
@@ -1558,6 +1558,9 @@ func (b *Executor) Build(ctx context.Context, stages imagebuilder.Stages) (image
|
||||
// stages.
|
||||
for i := range cleanupImages {
|
||||
removeID := cleanupImages[len(cleanupImages)-i-1]
|
||||
if removeID == imageID {
|
||||
continue
|
||||
}
|
||||
if _, err := b.store.DeleteImage(removeID, true); err != nil {
|
||||
logrus.Debugf("failed to remove intermediate image %q: %v", removeID, err)
|
||||
if b.forceRmIntermediateCtrs || errors.Cause(err) != storage.ErrImageUsedByContainer {
|
||||
@@ -1663,6 +1666,7 @@ func (b *Executor) Build(ctx context.Context, stages imagebuilder.Stages) (image
|
||||
if !b.layers {
|
||||
cleanupImages = append(cleanupImages, imageID)
|
||||
}
|
||||
imageID = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1812,9 +1816,10 @@ func (b *Executor) deleteSuccessfulIntermediateCtrs() error {
|
||||
}
|
||||
|
||||
func (s *StageExecutor) EnsureContainerPath(path string) error {
|
||||
_, err := os.Stat(filepath.Join(s.mountPoint, path))
|
||||
targetPath := filepath.Join(s.mountPoint, path)
|
||||
_, err := os.Lstat(targetPath)
|
||||
if err != nil && os.IsNotExist(err) {
|
||||
err = os.MkdirAll(filepath.Join(s.mountPoint, path), 0755)
|
||||
err = os.MkdirAll(targetPath, 0755)
|
||||
}
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error ensuring container path %q", path)
|
||||
|
||||
Reference in New Issue
Block a user