From 7259f1cbb2c647911a0de09290f619e33dbd930e Mon Sep 17 00:00:00 2001 From: ubergeek77 Date: Fri, 7 Jun 2024 15:45:28 -0500 Subject: [PATCH] Why is this not the default for Rust... --- Dockerfile-backend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile-backend b/Dockerfile-backend index d5db9cd..ca85fa8 100644 --- a/Dockerfile-backend +++ b/Dockerfile-backend @@ -24,7 +24,7 @@ COPY . ./ # Debug build RUN --mount=type=cache,target=/lemmy/target set -ex; \ if [ "${RUST_RELEASE_MODE}" = "debug" ]; then \ - RUST_BACKTRACE=1 cargo build --features "${CARGO_BUILD_FEATURES}"; \ + RUST_BACKTRACE=full cargo build --features "${CARGO_BUILD_FEATURES}"; \ mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \ fi @@ -32,7 +32,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \ RUN --mount=type=cache,target=/lemmy/target set -ex; \ if [ "${RUST_RELEASE_MODE}" = "release" ]; then \ cargo clean --release; \ - RUST_BACKTRACE=1 cargo build --features "${CARGO_BUILD_FEATURES}" --release; \ + RUST_BACKTRACE=full cargo build --features "${CARGO_BUILD_FEATURES}" --release; \ mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \ fi