diff --git a/frontend/dockerfile/builder/build.go b/frontend/dockerfile/builder/build.go index a91b46dd9df1..6d959d9deb4c 100644 --- a/frontend/dockerfile/builder/build.go +++ b/frontend/dockerfile/builder/build.go @@ -164,7 +164,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) { }, }) if err != nil { - return nil, errors.Errorf("failed to read downloaded context") + return nil, errors.Wrapf(err, "failed to read downloaded context") } if isArchive(dt) { if fileop { diff --git a/hack/util b/hack/util index 778995850b85..7b68d75e4d72 100755 --- a/hack/util +++ b/hack/util @@ -32,7 +32,7 @@ if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then currentref="git://github.com/moby/buildkit#refs/pull/$TRAVIS_PULL_REQUEST/merge" cacheref="cicache.buildk.it/moby/buildkit/pr$TRAVIS_BUILD_ID" elif [ -n "$TRAVIS_BRANCH" ]; then - currentref="git://github.com/moby/buildkit#$TRAVIS_BRANCH" + currentref="git://github.com/$TRAVIS_REPO_SLUG#$TRAVIS_BRANCH" fi diff --git a/util/testutil/integration/oci.go b/util/testutil/integration/oci.go index c4d3820cfcab..12d3ae705b40 100644 --- a/util/testutil/integration/oci.go +++ b/util/testutil/integration/oci.go @@ -1,8 +1,6 @@ package integration import ( - "bufio" - "bytes" "fmt" "log" "os" @@ -68,13 +66,3 @@ func (s *oci) New(cfg *BackendConfig) (Backend, func() error, error) { rootless: s.uid != 0, }, stop, nil } - -func printLogs(logs map[string]*bytes.Buffer, f func(args ...interface{})) { - for name, l := range logs { - f(name) - s := bufio.NewScanner(l) - for s.Scan() { - f(s.Text()) - } - } -} diff --git a/util/testutil/integration/sandbox.go b/util/testutil/integration/sandbox.go index 6cd2af4454bc..c926ed942f27 100644 --- a/util/testutil/integration/sandbox.go +++ b/util/testutil/integration/sandbox.go @@ -212,3 +212,13 @@ func rootlessSupported(uid int) bool { } return true } + +func printLogs(logs map[string]*bytes.Buffer, f func(args ...interface{})) { + for name, l := range logs { + f(name) + s := bufio.NewScanner(l) + for s.Scan() { + f(s.Text()) + } + } +}