From c7c4667687b2422c7b86c23c68e0b4810457bb85 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 18 Feb 2025 17:40:26 -0500 Subject: [PATCH] iamgebuildah.StageExecutor.runStageMountPoints(): correct an error Add a missing "not" to an error message. Signed-off-by: Nalin Dahyabhai --- imagebuildah/stage_executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imagebuildah/stage_executor.go b/imagebuildah/stage_executor.go index 4edc12c2d1..8faa61b6a5 100644 --- a/imagebuildah/stage_executor.go +++ b/imagebuildah/stage_executor.go @@ -546,7 +546,7 @@ func (s *StageExecutor) performCopy(excludes []string, copies ...imagebuilder.Co } contextDir = mountPoint } - // Original behaviour of buildah still stays true for COPY irrespective of additional context. + // This isn't --from the build context directory, so we don't want to force everything to 0:0 preserveOwnership = true copyExcludes = excludes } else { @@ -651,7 +651,7 @@ func (s *StageExecutor) runStageMountPoints(mountList []string) (map[string]inte if additionalBuildContext.IsImage { mountPoint, err := s.getImageRootfs(s.ctx, additionalBuildContext.Value) if err != nil { - return nil, fmt.Errorf("%s from=%s: image found with that name", flag, from) + return nil, fmt.Errorf("%s from=%s: image not found with that name", flag, from) } // The `from` in stageMountPoints should point // to `mountPoint` replaced from additional