Skip to content

Commit

Permalink
Vendor in latest buildkit v0.11 branch including CVE patches:
Browse files Browse the repository at this point in the history
- moby/buildkit#4638
- moby/buildkit#4639
- moby/buildkit#4640

additionally change the version in builder/builder-next/worker/worker.go
and
adjust calls to NewGatewayFrontend() in builder/builder-next (Worker is no
longer implementing the correct interface)
  • Loading branch information
dcermak committed Feb 13, 2024
1 parent e4c2b3e commit 6608550
Show file tree
Hide file tree
Showing 26 changed files with 613 additions and 598 deletions.
8 changes: 4 additions & 4 deletions builder/builder-next/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func newSnapshotterController(ctx context.Context, rt http.RoundTripper, opt Opt
return nil, err
}
frontends := map[string]frontend.Frontend{
"dockerfile.v0": forwarder.NewGatewayForwarder(wc, dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc),
"dockerfile.v0": forwarder.NewGatewayForwarder(wc.Infos(), dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc.Infos()),
}

return control.NewController(control.Opt{
Expand Down Expand Up @@ -338,8 +338,8 @@ func newGraphDriverController(ctx context.Context, rt http.RoundTripper, opt Opt
wc.Add(w)

frontends := map[string]frontend.Frontend{
"dockerfile.v0": forwarder.NewGatewayForwarder(wc, dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc),
"dockerfile.v0": forwarder.NewGatewayForwarder(wc.Infos(), dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc.Infos()),
}

return control.NewController(control.Opt{
Expand Down
2 changes: 1 addition & 1 deletion builder/builder-next/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
)

func init() {
version.Version = "v0.11.7+d3e6c1360f6e"
version.Version = "v0.11.7+98616a35568e"
}

const labelCreatedAt = "buildkit/createdat"
Expand Down
2 changes: 2 additions & 0 deletions vendor.mod
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ require (
resenje.org/singleflight v0.3.0
)

replace github.com/moby/buildkit => github.com/dcermak/buildkit v0.0.0-20240212085728-98616a35568e

require (
cloud.google.com/go v0.102.1 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
Expand Down
796 changes: 288 additions & 508 deletions vendor.sum

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions vendor/github.com/moby/buildkit/executor/executor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 18 additions & 12 deletions vendor/github.com/moby/buildkit/executor/oci/spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_non_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions vendor/github.com/moby/buildkit/executor/stubs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/moby/buildkit/frontend/frontend.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions vendor/github.com/moby/buildkit/frontend/gateway/container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6608550

Please sign in to comment.