We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5822e0 commit 83adf53Copy full SHA for 83adf53
commands/operator-sdk/cmd/new.go
@@ -140,11 +140,13 @@ func verifyFlags() {
140
141
func pullDep() {
142
fmt.Fprintln(os.Stdout, "Run dep ensure ...")
143
- dc := exec.Command(dep, ensureCmd)
+ dc := exec.Command(dep, ensureCmd, "-v")
144
dc.Dir = filepath.Join(mustGetwd(), projectName)
145
- o, err := dc.CombinedOutput()
+ dc.Stdout = os.Stdout
146
+ dc.Stderr = os.Stderr
147
+ err := dc.Run()
148
if err != nil {
- cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("failed to ensure dependencies: (%v)", string(o)))
149
+ cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("failed to ensure dependencies: %v", err))
150
}
151
fmt.Fprintln(os.Stdout, "Run dep ensure done")
152
0 commit comments