mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00
Fail fast on multi platform build with load
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
03b7128b60
commit
a1d899d400
@ -456,6 +456,9 @@ func toSolveOpt(ctx context.Context, d driver.Driver, multiDriver bool, opt Opti
|
|||||||
return nil, nil, notSupported(d, driver.OCIExporter)
|
return nil, nil, notSupported(d, driver.OCIExporter)
|
||||||
}
|
}
|
||||||
if e.Type == "docker" {
|
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 e.Output == nil {
|
||||||
if d.IsMobyDriver() {
|
if d.IsMobyDriver() {
|
||||||
e.Type = "image"
|
e.Type = "image"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user