From 33f43117c6e6b53efa9226c276f416348fc2d63b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 23 Nov 2026 18:12:57 +0900 Subject: internal/rosa: fix cross-compile target check This rejects a non-cross state attempting to cross compile the native target architecture. Signed-off-by: Ophestra --- cmd/mbf/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/mbf') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 7ec1188a..6941789c 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -802,7 +802,7 @@ func main() { command.UsageInternal, func([]string) error { s := &builtin - if flagCross != "" { + if flagCross != "" && flagCross != runtime.GOARCH { s = s.NewCross(flagCross) if !s.HasStageEarly() { return pkg.UnsupportedArchError(flagCross) @@ -863,7 +863,7 @@ func main() { } s := &builtin - if flagCross != "" { + if flagCross != "" && flagCross != runtime.GOARCH { s = s.NewCross(flagCross) if !s.HasStageEarly() { return pkg.UnsupportedArchError(flagCross) -- cgit v1.3.1