Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/dockerfile/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion hack/util
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
12 changes: 0 additions & 12 deletions util/testutil/integration/oci.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package integration

import (
"bufio"
"bytes"
"fmt"
"log"
"os"
Expand Down Expand Up @@ -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())
}
}
}
10 changes: 10 additions & 0 deletions util/testutil/integration/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}