Skip to content

Commit

Permalink
iamgebuildah.StageExecutor.runStageMountPoints(): correct an error
Browse files Browse the repository at this point in the history
Add a missing "not" to an error message.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
  • Loading branch information
nalind committed Feb 19, 2025
1 parent 72d43f2 commit e980b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagebuildah/stage_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e980b6c

Please sign in to comment.