mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-21 19:27:46 +08:00
build: remove warning for multi-platform iidfile
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
e24e04be57
commit
c9d69b082b
@ -300,9 +300,6 @@ func toSolveOpt(d driver.Driver, multiDriver bool, opt Options, dl dockerLoadCal
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
if opt.ImageIDFile != "" {
|
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
|
// Avoid leaving a stale file if we eventually fail
|
||||||
if err := os.Remove(opt.ImageIDFile); err != nil && !os.IsNotExist(err) {
|
if err := os.Remove(opt.ImageIDFile); err != nil && !os.IsNotExist(err) {
|
||||||
return nil, nil, errors.Wrap(err, "removing image ID file")
|
return nil, nil, errors.Wrap(err, "removing image ID file")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user