Skip to content

Commit a099bb0

Browse files
committed
first cut
1 parent 397ea59 commit a099bb0

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/vmware-tanzu/tanzu-cli
33
go 1.21
44

55
replace cloud.google.com/go => cloud.google.com/go v0.102.1
6-
6+
replace github.com/vmware-tanzu/tanzu-plugin-runtime => ../../runtime-code/tanzu-plugin-runtime
77
replace github.com/vmware-tanzu/tanzu-cli/test/e2e/framework => ./test/e2e/framework
88

99
require (

pkg/registry/client.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"archive/tar"
88
"bytes"
99
"io"
10+
"os"
1011

1112
"github.com/cppforlife/go-cli-ui/ui"
1213
regname "github.com/google/go-containerregistry/pkg/name"
@@ -221,6 +222,18 @@ func (r *registry) CopyImageFromTar(sourceTarFile, destImageRepo string) error {
221222
Insecure: r.opts.Insecure,
222223
}
223224
}
225+
originalStdout := os.Stderr
226+
pr, pw, pipeErr := os.Pipe()
227+
if pipeErr != nil {
228+
return pipeErr
229+
}
230+
defer func() {
231+
pr.Close()
232+
pw.Close()
233+
os.Stderr = originalStdout
234+
}()
235+
os.Stderr = pw
236+
224237
err := copyOptions.Run()
225238
if err != nil {
226239
return err

0 commit comments

Comments
 (0)