From e6d041553bf42952cad696bcda13d9763792e069 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 8 Dec 2025 13:35:20 +0100 Subject: [PATCH] Fix Makefile build-arch target to use a single shell and correctly pass BASE_IMAGE_arch to docker build. Reference: https://chatgpt.com/share/6936c5f9-5064-800f-8597-1cf3ccf7f42b --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3188e74..c6d4da5 100644 --- a/Makefile +++ b/Makefile @@ -71,12 +71,19 @@ build: -t "package-manager-test-$$distro" . || exit $$?; \ done +build-arch: + @base_image="$(BASE_IMAGE_arch)"; \ + echo "Building test image 'package-manager-test-arch' (BASE_IMAGE=$$base_image)..."; \ + docker build \ + --build-arg BASE_IMAGE="$$base_image" \ + -t "package-manager-test-arch" . || exit $$?; + # ------------------------------------------------------------ # Test targets # ------------------------------------------------------------ # Unit tests: only in Arch container (fastest feedback) -test-unit: build +test-unit: build-arch @echo "============================================================" @echo ">>> Running UNIT tests in Arch container" @echo "============================================================"