diff mbox series

go: skip recipe instead of throwing fatal error on unknown architectures

Message ID 20260415124306.575029-1-peter.marko@siemens.com
State Accepted, archived
Commit c4ae8318128fb8b98250931979501fafe178cec2
Headers show
Series go: skip recipe instead of throwing fatal error on unknown architectures | expand

Commit Message

Peter Marko April 15, 2026, 12:43 p.m. UTC
From: Peter Marko <peter.marko@siemens.com>

Current code means that layer which contains a golang recipe cannot be
even parsed for machine which is not in supported golang architectures.

Skipping the golang recipes instead of throwing fatal error is much
friendlier and let machines without golang support co-exist in a layer
with golang recipes.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 meta/lib/oe/go.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/go.py b/meta/lib/oe/go.py
index 4559dc63b2..cbcf80f0b1 100644
--- a/meta/lib/oe/go.py
+++ b/meta/lib/oe/go.py
@@ -35,4 +35,4 @@  def map_arch(a):
         return 'riscv64'
     elif a == 'loongarch64':
         return 'loong64'
-    raise KeyError(f"Cannot map architecture {a}")
+    raise bb.parse.SkipRecipe(f"Cannot map architecture {a}")