mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-11 02:56:33 +00:00
Merge pull request #974 from 907th/fix_jsonmessage_dependency
Fix dependency: github.com/docker/docker/utils was moved to pkg/jsonmessage
This commit is contained in:
commit
bc8a602d89
3 changed files with 2 additions and 7 deletions
|
@ -11,7 +11,6 @@ script:
|
||||||
- sudo apt-get -y install git zip libsqlite3-dev sqlite3 rpm 1> /dev/null 2> /dev/null
|
- sudo apt-get -y install git zip libsqlite3-dev sqlite3 rpm 1> /dev/null 2> /dev/null
|
||||||
- gem install fpm
|
- gem install fpm
|
||||||
- rbenv rehash
|
- rbenv rehash
|
||||||
- make docker
|
|
||||||
- make deps
|
- make deps
|
||||||
- make test
|
- make test
|
||||||
- make test_postgres
|
- make test_postgres
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -8,10 +8,6 @@ deps:
|
||||||
go get github.com/GeertJohan/go.rice/rice
|
go get github.com/GeertJohan/go.rice/rice
|
||||||
go get -t -v ./...
|
go get -t -v ./...
|
||||||
|
|
||||||
docker:
|
|
||||||
mkdir -p $$GOPATH/src/github.com/docker/docker
|
|
||||||
git clone --depth=1 --branch=v1.5.0 git://github.com/docker/docker.git $$GOPATH/src/github.com/docker/docker
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@test -z "$(shell find . -name '*.go' | xargs gofmt -l)" || (echo "Need to run 'go fmt ./...'"; exit 1)
|
@test -z "$(shell find . -name '*.go' | xargs gofmt -l)" || (echo "Need to run 'go fmt ./...'"; exit 1)
|
||||||
go vet ./...
|
go vet ./...
|
||||||
|
|
|
@ -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