mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +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:
parent
e0b537b19e
commit
12e6a85661
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user