mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
vendor: update buildkit to v0.20.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -400,6 +400,11 @@ func initBuildkit(ctx context.Context, d *daemon.Daemon) (_ builderOptions, clos
|
||||
return builderOptions{}, closeFn, err
|
||||
}
|
||||
|
||||
var cdiSpecDirs []string
|
||||
if d.Features()["cdi"] {
|
||||
cdiSpecDirs = d.Config().CDISpecDirs
|
||||
}
|
||||
|
||||
cfg := d.Config()
|
||||
bk, err := buildkit.New(ctx, buildkit.Opt{
|
||||
SessionManager: sm,
|
||||
@@ -423,6 +428,7 @@ func initBuildkit(ctx context.Context, d *daemon.Daemon) (_ builderOptions, clos
|
||||
Exported: d.ImageExportedByBuildkit,
|
||||
Named: d.ImageNamedByBuildkit,
|
||||
},
|
||||
CDISpecDirs: cdiSpecDirs,
|
||||
})
|
||||
if err != nil {
|
||||
return builderOptions{}, closeFn, errors.Wrap(err, "error creating buildkit instance")
|
||||
|
||||
Reference in New Issue
Block a user