From 884a2ab9876f0e4df5b756096dca47f4ba067d72 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 5 Sep 2024 01:27:23 +0000 Subject: [PATCH] Add missing `rustc` `metadata` override for `lightning_types` This should resolve non-determinism in builds. --- deterministic-build-wrappers/rustc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deterministic-build-wrappers/rustc b/deterministic-build-wrappers/rustc index b05d3407..5ac8fe21 100755 --- a/deterministic-build-wrappers/rustc +++ b/deterministic-build-wrappers/rustc @@ -10,7 +10,7 @@ IS_LIGHTNING=false for ((i=0; i<"${#args[@]}"; ++i)); do case ${args[i]} in --crate-name) - if [ "${args[i+1]}" = "lightning" -o "${args[i+1]}" = "lightning_background_processor" -o "${args[i+1]}" = "lightning_invoice" -o "${args[i+1]}" = "lightning_persister" -o "${args[i+1]}" = "lightning_rapid_gossip_sync" -o "${args[i+1]}" = "ldk" ]; then + if [ "${args[i+1]}" = "lightning" -o "${args[i+1]}" = "lightning_types" -o "${args[i+1]}" = "lightning_background_processor" -o "${args[i+1]}" = "lightning_invoice" -o "${args[i+1]}" = "lightning_persister" -o "${args[i+1]}" = "lightning_rapid_gossip_sync" -o "${args[i+1]}" = "ldk" ]; then IS_LIGHTNING=true fi ;;