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) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-04-19 08:44:39 -04:00
parent 423c2f8201
commit 73b49bd5bf

View File

@ -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