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.
@@ -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
