mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 02:41:01 +00:00
Fix dependency: github.com/docker/docker/utils was moved to pkg/jsonmessage
This commit is contained in:
parent
aa3eeda9b8
commit
9bc3a25a5e
1 changed files with 2 additions and 2 deletions
|
@ -15,9 +15,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/docker/docker/pkg/jsonmessage"
|
||||||
"github.com/docker/docker/pkg/stdcopy"
|
"github.com/docker/docker/pkg/stdcopy"
|
||||||
"github.com/docker/docker/pkg/term"
|
"github.com/docker/docker/pkg/term"
|
||||||
"github.com/docker/docker/utils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -353,7 +353,7 @@ func (c *Client) stream(method, path string, in io.Reader, out io.Writer, header
|
||||||
|
|
||||||
// it may not make sense to put this code here, but it works for
|
// it may not make sense to put this code here, but it works for
|
||||||
// us at the moment, and I don't feel like refactoring
|
// us at the moment, and I don't feel like refactoring
|
||||||
return utils.DisplayJSONMessagesStream(resp.Body, out, terminalFd, isTerminal)
|
return jsonmessage.DisplayJSONMessagesStream(resp.Body, out, terminalFd, isTerminal)
|
||||||
}
|
}
|
||||||
// otherwise plain text
|
// otherwise plain text
|
||||||
if _, err := io.Copy(out, resp.Body); err != nil {
|
if _, err := io.Copy(out, resp.Body); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue