File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"github.com/moby/buildkit/client/llb"
17
17
"github.com/moby/buildkit/cmd/buildctl/build"
18
18
bccommon "github.com/moby/buildkit/cmd/buildctl/common"
19
+ "github.com/moby/buildkit/frontend"
19
20
gateway "github.com/moby/buildkit/frontend/gateway/client"
20
21
"github.com/moby/buildkit/identity"
21
22
"github.com/moby/buildkit/session"
@@ -363,6 +364,15 @@ func buildAction(clicontext *cli.Context) error {
363
364
Frontend : solveOpt .Frontend ,
364
365
FrontendOpt : solveOpt .FrontendAttrs ,
365
366
}
367
+
368
+ sreq .CacheImports = make ([]frontend.CacheOptionsEntry , len (solveOpt .CacheImports ))
369
+ for i , e := range solveOpt .CacheImports {
370
+ sreq .CacheImports [i ] = frontend.CacheOptionsEntry {
371
+ Type : e .Type ,
372
+ Attrs : e .Attrs ,
373
+ }
374
+ }
375
+
366
376
if def != nil {
367
377
sreq .Definition = def .ToPB ()
368
378
}
You can’t perform that action at this time.
0 commit comments