build: remove warning for multi-platform iidfile

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/351/head
Tonis Tiigi 4 years ago
parent e24e04be57
commit c9d69b082b

@ -300,9 +300,6 @@ func toSolveOpt(d driver.Driver, multiDriver bool, opt Options, dl dockerLoadCal
}()
if opt.ImageIDFile != "" {
if multiDriver || len(opt.Platforms) != 0 {
return nil, nil, errors.Errorf("image ID file cannot be specified when building for multiple platforms")
}
// Avoid leaving a stale file if we eventually fail
if err := os.Remove(opt.ImageIDFile); err != nil && !os.IsNotExist(err) {
return nil, nil, errors.Wrap(err, "removing image ID file")

Loading…
Cancel
Save