summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsu <andrewhsu@docker.com>2019-11-04 17:23:40 -0800
committerGitHub <noreply@github.com>2019-11-04 17:23:40 -0800
commit5d5083a57a1c071a935bc6a1be6b1b1cc5cf1ede (patch)
tree578c47c8de288805dde3c37ff538e4142fbc6aab
parent35913e58c2089c2d19eb02b611fc289d1c56f113 (diff)
parent25162d4a4ee031d409c3bb6d8a26ba81c45eb3a0 (diff)
downloaddocker-19.03.5-beta2.tar.gz
Merge pull request #420 from tonistiigi/1903-buildkit-updatev19.03.5-beta2
[19.03] vendor: update buildkit to ff93519ee
-rw-r--r--vendor.conf2
-rw-r--r--vendor/github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb/convert.go26
-rw-r--r--vendor/github.com/moby/buildkit/session/sshforward/ssh.go4
-rw-r--r--vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go2
4 files changed, 10 insertions, 24 deletions
diff --git a/vendor.conf b/vendor.conf
index 3c05d45bd9..a576405ba9 100644
--- a/vendor.conf
+++ b/vendor.conf
@@ -26,7 +26,7 @@ github.com/imdario/mergo 7c29201646fa3de8506f70121347
golang.org/x/sync e225da77a7e68af35c70ccbf71af2b83e6acac3c
# buildkit
-github.com/moby/buildkit ae10b292fefb00e0fbf9fecd1419c5f252e58895
+github.com/moby/buildkit ff93519eefb7d4b2ee67dd78166cd5d0f52f8980
github.com/tonistiigi/fsutil 3d2716dd0a4d06ff854241c7e8b6f3f904e1719f
github.com/grpc-ecosystem/grpc-opentracing 8e809c8a86450a29b90dcc9efbf062d0fe6d9746
github.com/opentracing/opentracing-go 1361b9cd60be79c4c3a7fa9841b3c132e40066a7
diff --git a/vendor/github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb/convert.go b/vendor/github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb/convert.go
index 8cec181ed5..bb21476c93 100644
--- a/vendor/github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb/convert.go
+++ b/vendor/github.com/moby/buildkit/frontend/dockerfile/dockerfile2llb/convert.go
@@ -1202,31 +1202,13 @@ func normalizeContextPaths(paths map[string]struct{}) []string {
if p == "/" {
return nil
}
- pathSlice = append(pathSlice, p)
+ pathSlice = append(pathSlice, path.Join(".", p))
}
- toDelete := map[string]struct{}{}
- for i := range pathSlice {
- for j := range pathSlice {
- if i == j {
- continue
- }
- if strings.HasPrefix(pathSlice[j], pathSlice[i]+"/") {
- delete(paths, pathSlice[j])
- }
- }
- }
-
- toSort := make([]string, 0, len(paths))
- for p := range paths {
- if _, ok := toDelete[p]; !ok {
- toSort = append(toSort, path.Join(".", p))
- }
- }
- sort.Slice(toSort, func(i, j int) bool {
- return toSort[i] < toSort[j]
+ sort.Slice(pathSlice, func(i, j int) bool {
+ return pathSlice[i] < pathSlice[j]
})
- return toSort
+ return pathSlice
}
func proxyEnvFromBuildArgs(args map[string]string) *llb.ProxyEnv {
diff --git a/vendor/github.com/moby/buildkit/session/sshforward/ssh.go b/vendor/github.com/moby/buildkit/session/sshforward/ssh.go
index 0001f59b5f..a7a4c2e228 100644
--- a/vendor/github.com/moby/buildkit/session/sshforward/ssh.go
+++ b/vendor/github.com/moby/buildkit/session/sshforward/ssh.go
@@ -75,6 +75,10 @@ func MountSSHSocket(ctx context.Context, c session.Caller, opt SocketOpt) (sockP
}
}()
+ if err := os.Chmod(dir, 0711); err != nil {
+ return "", nil, errors.WithStack(err)
+ }
+
sockPath = filepath.Join(dir, "ssh_auth_sock")
l, err := net.Listen("unix", sockPath)
diff --git a/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go b/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go
index aa2d6faf27..324b442d6b 100644
--- a/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go
+++ b/vendor/github.com/moby/buildkit/solver/llbsolver/ops/exec.go
@@ -525,7 +525,7 @@ func (sm *secretMountInstance) Mount() ([]mount.Mount, func() error, error) {
return []mount.Mount{{
Type: "bind",
Source: fp,
- Options: []string{"ro", "rbind"},
+ Options: []string{"ro", "rbind", "nodev", "nosuid", "noexec"},
}}, cleanup, nil
}