Skip to content

Commit

Permalink
Merge pull request #351 from tonistiigi/multi-iidfile
Browse files Browse the repository at this point in the history
build: remove warning for multi-platform iidfile
  • Loading branch information
tonistiigi authored Aug 21, 2020
2 parents e24e04b + c9d69b0 commit 691a147
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 691a147

Please sign in to comment.