From 61a60a3163055c40542dfc1b3a53bccd21e621aa Mon Sep 17 00:00:00 2001 From: nelind Date: Sat, 21 Feb 2026 23:43:03 +0100 Subject: [PATCH] fix: only include timestamp in the build version if built in debug mode so release stays reproducible --- crates/tranquil-pds/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/tranquil-pds/src/main.rs b/crates/tranquil-pds/src/main.rs index afca1c4..6bee7b3 100644 --- a/crates/tranquil-pds/src/main.rs +++ b/crates/tranquil-pds/src/main.rs @@ -7,12 +7,16 @@ use tokio_util::sync::CancellationToken; use tracing::{error, info, warn}; use tranquil_pds::comms::{CommsService, DiscordSender, EmailSender, SignalSender, TelegramSender}; +#[cfg(debug_assertions)] const BUILD_VERSION: &str = concat!( env!("CARGO_PKG_VERSION"), " (built ", env!("BUILD_TIMESTAMP"), ")" ); +#[cfg(not(debug_assertions))] +const BUILD_VERSION: &str = env!("CARGO_PKG_VERSION"); + use tranquil_pds::crawlers::{Crawlers, start_crawlers_service}; use tranquil_pds::scheduled::{ backfill_genesis_commit_blocks, backfill_record_blobs, backfill_repo_rev, backfill_user_blocks,