Skip to content

Commit

Permalink
restore normal display when exposing outputs to github actions (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <dvaumoron@gmail.com>
  • Loading branch information
dvaumoron authored Apr 9, 2024
1 parent 29e7bb3 commit b9a8d6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions versionmanager/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package proxy
import (
"errors"
"fmt"
"io"
"math/rand"
"os"
"os/exec"
Expand Down Expand Up @@ -125,8 +126,8 @@ func initIO(cmd *exec.Cmd, execName string, pExitCode *int) (func(int), error) {
}

var errBuffer, outBuffer strings.Builder
cmd.Stderr = &errBuffer
cmd.Stdout = &outBuffer
cmd.Stderr = io.MultiWriter(&errBuffer, os.Stderr)
cmd.Stdout = io.MultiWriter(&outBuffer, os.Stdout)

return func(calledExitCode int) {
var err error
Expand Down

0 comments on commit b9a8d6b

Please sign in to comment.