Skip to content

Commit 4df89d8

Browse files
authored
Merge pull request #3397 from tonistiigi/update-buildkit-v0.24.0-rc2
vendor: update buildkit to v0.24.0-rc2
2 parents ce3592e + 1f39ad2 commit 4df89d8

File tree

14 files changed

+284
-74
lines changed

14 files changed

+284
-74
lines changed

bake/remote.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ func ReadRemoteFiles(ctx context.Context, nodes []builder.Node, url string, name
3232
var sessions []session.Attachable
3333
var filename string
3434

35-
st, ok := dockerui.DetectGitContext(url, false)
35+
keepGitDir := false
36+
st, ok, err := dockerui.DetectGitContext(url, &keepGitDir)
3637
if ok {
38+
if err != nil {
39+
return nil, nil, err
40+
}
3741
if ssh, err := build.CreateSSH([]*buildflags.SSH{{
3842
ID: "default",
3943
Paths: strings.Split(os.Getenv("BUILDX_BAKE_GIT_SSH"), ","),

build/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func IsRemoteURL(c string) bool {
3636
if isHTTPURL(c) {
3737
return true
3838
}
39-
if _, err := dfgitutil.ParseGitRef(c); err == nil {
39+
if _, ok, _ := dfgitutil.ParseGitRef(c); ok {
4040
return true
4141
}
4242
return false

commands/history/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ func valueFiler(key, value, sep string) matchFunc {
332332
recValue = v
333333
} else {
334334
if context, ok := rec.FrontendAttrs["context"]; ok {
335-
if ref, err := dfgitutil.ParseGitRef(context); err == nil {
335+
if ref, _, err := dfgitutil.ParseGitRef(context); err == nil {
336336
recValue = ref.Remote
337337
}
338338
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
github.com/hashicorp/hcl/v2 v2.23.0
3030
github.com/in-toto/in-toto-golang v0.9.0
3131
github.com/mitchellh/hashstructure/v2 v2.0.2
32-
github.com/moby/buildkit v0.24.0-rc1
32+
github.com/moby/buildkit v0.24.0-rc2
3333
github.com/moby/go-archive v0.1.0
3434
github.com/moby/sys/atomicwriter v0.1.0
3535
github.com/moby/sys/mountinfo v0.7.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZX
255255
github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4=
256256
github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE=
257257
github.com/mitchellh/mapstructure v0.0.0-20150613213606-2caf8efc9366/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
258-
github.com/moby/buildkit v0.24.0-rc1 h1:taA+MPeYWtGyRQ1SGbdTHVk5khWKFR7f9WI2coW/Ggs=
259-
github.com/moby/buildkit v0.24.0-rc1/go.mod h1:4qovICAdR2H4C7+EGMRva5zgHW1gyhT4/flHI7F5F9k=
258+
github.com/moby/buildkit v0.24.0-rc2 h1:1Z9+R162yauf3SYvn8cGjBPnglMDK4bO+00dNlJSgZI=
259+
github.com/moby/buildkit v0.24.0-rc2/go.mod h1:4qovICAdR2H4C7+EGMRva5zgHW1gyhT4/flHI7F5F9k=
260260
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
261261
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
262262
github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ=

vendor/github.com/moby/buildkit/client/llb/source.go

Lines changed: 50 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/buildkit/frontend/dockerfile/dfgitutil/git_ref.go

Lines changed: 125 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)