buildctl: fix frontends ignore-cache setting

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2018-11-20 15:53:14 -08:00
parent f2f4b534d4
commit b3092ab51c
1 changed files with 3 additions and 1 deletions

View File

@ -218,8 +218,10 @@ func build(clicontext *cli.Context) error {
return err
}
} else {
if clicontext.Bool("no-cache") {
solveOpt.FrontendAttrs["no-cache"] = ""
}
}
eg.Go(func() error {
resp, err := c.Solve(ctx, def, solveOpt, ch)