From 2d552e022a08aa8d93bcf060ed8c19e4a98c1e12 Mon Sep 17 00:00:00 2001 From: Michael Grymporounis Date: Fri, 10 Jul 2026 16:28:34 +0300 Subject: [PATCH] Honor the build.crossCompile.enabled value The configuration value build.crossCompile.enabled is always assumed to be true, and the image to enable it is always run regardless. This change will skip this step if enabled is set to false. Since the default value is true, the default behavior remains the same. This is a fix for issue #16. Signed-off-by: Michael Grymporounis --- internal/builder/docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/builder/docker.go b/internal/builder/docker.go index d88a42c..ff1665b 100644 --- a/internal/builder/docker.go +++ b/internal/builder/docker.go @@ -24,6 +24,9 @@ func execDocker(args ...string) error { } func enableCrossCompilation(crossCompileSettings configuration.CrossCompileConfig) error { + if !crossCompileSettings.Enabled { + return nil + } args := []string{"run", "--rm", "--privileged", crossCompileSettings.Image} args = append(args, crossCompileSettings.Args...)