From c9d69b082b6025b8f86ae72e5979ff56fdd9e2d0 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 17 Aug 2020 22:34:29 -0700 Subject: [PATCH] build: remove warning for multi-platform iidfile Signed-off-by: Tonis Tiigi --- build/build.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/build/build.go b/build/build.go index 532bb0c1..7d50cfea 100644 --- a/build/build.go +++ b/build/build.go @@ -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")