mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Update vendored c/buildah to 32d78c69be17
Signed-off-by: David Negstad <David.Negstad@microsoft.com>
This commit is contained in:
7
vendor/github.com/containers/buildah/add.go
generated
vendored
7
vendor/github.com/containers/buildah/add.go
generated
vendored
@@ -516,8 +516,13 @@ func (b *Builder) Add(destination string, extract bool, options AddAndCopyOption
|
||||
wg.Add(1)
|
||||
if sourceIsGit(src) {
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
defer pipeWriter.Close()
|
||||
var cloneDir, subdir string
|
||||
cloneDir, subdir, getErr = define.TempDirForURL(tmpdir.GetTempDir(), "", src)
|
||||
if getErr != nil {
|
||||
return
|
||||
}
|
||||
getOptions := copier.GetOptions{
|
||||
UIDMap: srcUIDMap,
|
||||
GIDMap: srcGIDMap,
|
||||
@@ -534,8 +539,6 @@ func (b *Builder) Add(destination string, extract bool, options AddAndCopyOption
|
||||
writer := io.WriteCloser(pipeWriter)
|
||||
repositoryDir := filepath.Join(cloneDir, subdir)
|
||||
getErr = copier.Get(repositoryDir, repositoryDir, getOptions, []string{"."}, writer)
|
||||
pipeWriter.Close()
|
||||
wg.Done()
|
||||
}()
|
||||
} else {
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user