From d38e6502adf9a3429a392c2f6ad9c787853d31c1 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 10 Oct 2023 19:56:11 +0000 Subject: fix(third_party/crate2nix): run tests in debug mode Behave like `cargo test` rather than `cargo test --release`. Change-Id: Ie013d04ac68d7dec2a3b870fa9f0060a70a9635d Reviewed-on: https://cl.tvl.fyi/c/depot/+/9621 Reviewed-by: flokli Tested-by: BuildkiteCI --- third_party/overlays/patches/crate2nix-tests-debug.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 third_party/overlays/patches/crate2nix-tests-debug.patch (limited to 'third_party/overlays/patches') diff --git a/third_party/overlays/patches/crate2nix-tests-debug.patch b/third_party/overlays/patches/crate2nix-tests-debug.patch new file mode 100644 index 000000000000..384178c805f7 --- /dev/null +++ b/third_party/overlays/patches/crate2nix-tests-debug.patch @@ -0,0 +1,12 @@ +diff --git a/templates/nix/crate2nix/default.nix b/templates/nix/crate2nix/default.nix +index 4eefda8..d064118 100644 +--- a/templates/nix/crate2nix/default.nix ++++ b/templates/nix/crate2nix/default.nix +@@ -111,6 +111,7 @@ rec { + ( + _: { + buildTests = true; ++ release = false; + } + ); + # If the user hasn't set any pre/post commands, we don't want to -- cgit 1.4.1