diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-08-16 16:23:09 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-17 11:40:46 +0000 |
commit | 57e1600315c3b4657797d2605cc69d7343da034f (patch) | |
tree | 93b75a75abd830dba091d82f17d87463b4d549fb /vendor/github.com/projectatomic/buildah/imagebuildah | |
parent | 89a9750b6dd55b6d647d43942c6f97c9e1bb4029 (diff) | |
download | podman-57e1600315c3b4657797d2605cc69d7343da034f.tar.gz podman-57e1600315c3b4657797d2605cc69d7343da034f.tar.bz2 podman-57e1600315c3b4657797d2605cc69d7343da034f.zip |
Vendor in latest buildah and imagebuilder
We want to add the latest support for COPY --chown UID:GID.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #1289
Approved by: TomSweeneyRedHat
Diffstat (limited to 'vendor/github.com/projectatomic/buildah/imagebuildah')
-rw-r--r-- | vendor/github.com/projectatomic/buildah/imagebuildah/build.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/projectatomic/buildah/imagebuildah/build.go b/vendor/github.com/projectatomic/buildah/imagebuildah/build.go index bcdcfb678..547b6b249 100644 --- a/vendor/github.com/projectatomic/buildah/imagebuildah/build.go +++ b/vendor/github.com/projectatomic/buildah/imagebuildah/build.go @@ -446,7 +446,12 @@ func (b *Executor) Copy(excludes []string, copies ...imagebuilder.Copy) error { sources = append(sources, filepath.Join(b.contextDir, src)) } } - if err := b.builder.Add(copy.Dest, copy.Download, buildah.AddAndCopyOptions{}, sources...); err != nil { + + options := buildah.AddAndCopyOptions{ + Chown: copy.Chown, + } + + if err := b.builder.Add(copy.Dest, copy.Download, options, sources...); err != nil { return err } } |