Skip to content

Commit 42b8c83

Browse files
committed
bug fix on windows cmd start
1 parent f46c1ec commit 42b8c83

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ go.work
2323
gob
2424
11.json
2525
target
26+
*.sql

cmd/gbc/artifact/pty_writer.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ func PtyCmdOutput(cmd *exec.Cmd, task string, formatter consoleFormatter) error
2323
// Start the command with a pty
2424
rc, err := func() (io.ReadCloser, error) {
2525
if Windows() {
26-
return cmd.StdoutPipe()
26+
r, err := cmd.StdoutPipe()
27+
if err != nil {
28+
return r, err
29+
}
30+
return r, cmd.Start()
2731
}
2832
return pty.Start(cmd)
2933
}()

0 commit comments

Comments
 (0)