We have two different code paths:
- modern
$ docker buildx
- legacy
$ docker build
|
// use buildx when platforms set. it's almost same as "$ docker build" but it almost transparently |
|
// supports cross-architecture builds via binftm_misc + QEMU userspace emulation |
|
useBuildx := len(dockerImage.Platforms) > 0 |
|
|
|
if useBuildx { |
Remove 2 so we only have one code path left.
We have two different code paths:
$ docker buildx$ docker buildturbobob/cmd/bob/build.go
Lines 188 to 192 in 0e6e5bc
Remove 2 so we only have one code path left.