fix: only include timestamp in the build version if built in debug mode so release stays reproducible

This commit is contained in:
nelind
2026-02-22 00:30:43 +01:00
parent 09f8040135
commit 61a60a3163
+4
View File
@@ -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,