From 73b49bd5bf4eeef12fcbb653e686e5f389db132d Mon Sep 17 00:00:00 2001 From: Dorian Date: Sun, 19 Apr 2026 08:44:39 -0400 Subject: [PATCH] fix(iso): use --workspace --bins so cargo builds fips-gateway member crate Plain `cargo build --release --bins` only built the root crate's binary targets. fips-gateway is a workspace member, so we need --workspace to pull every member's bins. Without it cargo deb --no-build panics looking for target/release/fips-gateway. Co-Authored-By: Claude Opus 4.7 (1M context) --- image-recipe/build-auto-installer-iso.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/image-recipe/build-auto-installer-iso.sh b/image-recipe/build-auto-installer-iso.sh index 5916aa70..a56124ca 100755 --- a/image-recipe/build-auto-installer-iso.sh +++ b/image-recipe/build-auto-installer-iso.sh @@ -260,7 +260,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \\ RUN cargo install --locked cargo-deb RUN git clone --depth 1 https://github.com/jmcorgan/fips.git /src/fips WORKDIR /src/fips -RUN cargo build --release +# fips-gateway is in a separate workspace crate; plain --bins on the +# root only builds root's bins. --workspace pulls every member crate's +# bin target so cargo deb finds them all. +RUN cargo build --release --workspace --bins RUN cargo deb --no-build RUN cp target/debian/fips_*_amd64.deb /tmp/fips.deb