diff --git a/go.mod b/go.mod index d62d948b6f..ceb0d61798 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ replace cloud.google.com/go => cloud.google.com/go v0.110.0 require ( github.com/99designs/gqlgen v0.17.19 github.com/ActiveState/go-ogle-analytics v0.0.0-20170510030904-9b3f14901527 - github.com/ActiveState/termtest v0.7.3-0.20230823164558-f51cb1df0099 + github.com/ActiveState/termtest v0.7.3-0.20230823220605-646deecb4844 github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 github.com/andygrunwald/go-jira v1.15.1 diff --git a/go.sum b/go.sum index d63ba9d45f..405d1412aa 100644 --- a/go.sum +++ b/go.sum @@ -345,8 +345,8 @@ github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48 h1:UCx/ObpVRgC github.com/ActiveState/graphql v0.0.0-20230719154233-6949037a6e48/go.mod h1:NhUbNQ8UpfnC6nZvZ8oThqYSCE/G8FQp9JUrK9jXJs0= github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 h1:RdhhSiwmgyUaaF2GBNrbqTwE5SM+MaVjwf91Ua+CK8c= github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14/go.mod h1:5mM6vNRQwshCjlkOnVpwC//4ZpkiC6nmZr8lPOxJdXs= -github.com/ActiveState/termtest v0.7.3-0.20230823164558-f51cb1df0099 h1:4jUDNzCKvupVdXlMTfMCubdd1yHeBE4U2POYWm40Tsc= -github.com/ActiveState/termtest v0.7.3-0.20230823164558-f51cb1df0099/go.mod h1:7VnCvgQKKktm2gZ+MlL1vZGi1k4lR97iABpTGqWAvnc= +github.com/ActiveState/termtest v0.7.3-0.20230823220605-646deecb4844 h1:UzDCzBGkbfVTCLuxHwfT6vlOIPnMLrzc07+hCBzCMsU= +github.com/ActiveState/termtest v0.7.3-0.20230823220605-646deecb4844/go.mod h1:7VnCvgQKKktm2gZ+MlL1vZGi1k4lR97iABpTGqWAvnc= github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= diff --git a/vendor/github.com/ActiveState/termtest/outputproducer.go b/vendor/github.com/ActiveState/termtest/outputproducer.go index df4a26d561..8f958e0df5 100644 --- a/vendor/github.com/ActiveState/termtest/outputproducer.go +++ b/vendor/github.com/ActiveState/termtest/outputproducer.go @@ -74,13 +74,13 @@ func (o *outputProducer) processNextRead(r io.Reader, w io.Writer, appendBuffer n, errRead := r.Read(snapshot) if n > 0 { o.opts.Logger.Printf("outputProducer read %d bytes from pty, value: %s", n, snapshot[:n]) + if _, err := w.Write(snapshot[:n]); err != nil { + return fmt.Errorf("could not write: %w", err) + } snapshot = cleanPtySnapshot(snapshot[:n], o.opts.Posix) if err := appendBuffer(snapshot); err != nil { return fmt.Errorf("could not append buffer: %w", err) } - if _, err := w.Write(snapshot[:n]); err != nil { - return fmt.Errorf("could not write: %w", err) - } } // Error doesn't necessarily mean something went wrong, we may just have reached the natural end diff --git a/vendor/modules.txt b/vendor/modules.txt index 088625adf9..cc9295c791 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -19,7 +19,7 @@ github.com/ActiveState/graphql # github.com/ActiveState/pty v0.0.0-20230628221854-6fb90eb08a14 ## explicit; go 1.13 github.com/ActiveState/pty -# github.com/ActiveState/termtest v0.7.3-0.20230823164558-f51cb1df0099 +# github.com/ActiveState/termtest v0.7.3-0.20230823220605-646deecb4844 ## explicit; go 1.18 github.com/ActiveState/termtest # github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78