Skip to content

Commit 8cf9bec

Browse files
authored
Merge pull request #730 from tonistiigi/no-cache-fix
buildctl: fix frontends ignore-cache setting
2 parents df64298 + b3092ab commit 8cf9bec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/buildctl/build.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ func build(clicontext *cli.Context) error {
218218
return err
219219
}
220220
} else {
221-
solveOpt.FrontendAttrs["no-cache"] = ""
221+
if clicontext.Bool("no-cache") {
222+
solveOpt.FrontendAttrs["no-cache"] = ""
223+
}
222224
}
223225

224226
if clicontext.String("frontend") != "" && len(clicontext.StringSlice("import-cache")) != 0 {

0 commit comments

Comments
 (0)