From 2b8113f10381457e28ba192bf905df4f133fb7dd Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 26 Sep 2026 20:24:49 -0700 Subject: [PATCH] fix(hack): build the requested profile in the dev Docker build The dev build passed RUST_TARGET_SUBDIR to the Docker build, but not RUST_PROFILE, so the Dockerfile always built the release profile and then copied from the directory of the requested profile. Any profile other than release, like ./hack/dev/boot.sh x86_64 debug, failed. Pass the profile as well. --- hack/dev/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/dev/build.sh b/hack/dev/build.sh index f393a66..5c63510 100755 --- a/hack/dev/build.sh +++ b/hack/dev/build.sh @@ -105,6 +105,7 @@ if [ "${SKIP_SPROUT_BUILD}" != "1" ]; then cp "target/${RUST_TARGET}/${RUST_TARGET_SUBDIR}/sprout.efi" "${FINAL_DIR}/sprout.efi" else docker build --platform="${DOCKER_TARGET}" -t "${DOCKER_PREFIX}/sprout-${TARGET_ARCH}:${DOCKER_TAG}" \ + --build-arg="RUST_PROFILE=${RUST_PROFILE}" \ --build-arg="RUST_TARGET_SUBDIR=${RUST_TARGET_SUBDIR}" \ -f Dockerfile . copy_from_image "${DOCKER_PREFIX}/sprout-${TARGET_ARCH}" "sprout.efi" "${FINAL_DIR}/sprout.efi"