mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 00:42:54 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user