From a1d899d40043e0f2b438a49f16f8e3d3ff9c1cde Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Sat, 3 Apr 2021 12:38:09 +0200 Subject: [PATCH] Fail fast on multi platform build with load Signed-off-by: Djordje Lukic --- build/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/build.go b/build/build.go index ba7b7780..7aacb0a2 100644 --- a/build/build.go +++ b/build/build.go @@ -456,6 +456,9 @@ func toSolveOpt(ctx context.Context, d driver.Driver, multiDriver bool, opt Opti return nil, nil, notSupported(d, driver.OCIExporter) } if e.Type == "docker" { + if len(opt.Platforms) > 1 { + return nil, nil, errors.Errorf("docker exporter does not currently support exporting manifest lists") + } if e.Output == nil { if d.IsMobyDriver() { e.Type = "image"