Make linuxkit pkg build on an unsupported arch a nop

Rather than a hard fail. This allows batch builds of a set of packages without
the surrounding loop needing to be away of the possibility.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-10-10 10:42:58 +01:00
parent e0b537b19e
commit 12e6a85661

View File

@ -46,7 +46,8 @@ func (p Pkg) Build(bos ...BuildOpt) error {
arch := runtime.GOARCH
if !p.archSupported(arch) {
return fmt.Errorf("Arch %s not supported by this package", arch)
fmt.Printf("Arch %s not supported by this package, skipping build.\n", arch)
return nil
}
if err := p.cleanForBuild(); err != nil {
return err