Skip to content

Commit

Permalink
first cut
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrareddyp committed Apr 12, 2024
1 parent 7bbadfd commit 32d6b0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/vmware-tanzu/tanzu-cli
go 1.21

replace cloud.google.com/go => cloud.google.com/go v0.102.1

replace github.com/vmware-tanzu/tanzu-plugin-runtime => ../../runtime-code/tanzu-plugin-runtime
replace github.com/vmware-tanzu/tanzu-cli/test/e2e/framework => ./test/e2e/framework

require (
Expand Down
13 changes: 13 additions & 0 deletions pkg/registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"archive/tar"
"bytes"
"io"
"os"

"github.com/cppforlife/go-cli-ui/ui"
regname "github.com/google/go-containerregistry/pkg/name"
Expand Down Expand Up @@ -221,6 +222,18 @@ func (r *registry) CopyImageFromTar(sourceTarFile, destImageRepo string) error {
Insecure: r.opts.Insecure,
}
}
originalStdout := os.Stderr
pr, pw, pipeErr := os.Pipe()
if pipeErr != nil {
return pipeErr
}
defer func() {
pr.Close()
pw.Close()
os.Stderr = originalStdout
}()
os.Stderr = pw

err := copyOptions.Run()
if err != nil {
return err
Expand Down

0 comments on commit 32d6b0e

Please sign in to comment.