From de767121be7eda741f28d8c2597f868948e779af Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 4 Aug 2023 16:09:55 +0200 Subject: [PATCH] Switch to plain commit hash in version number --- build.rs | 2 +- src/main.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/build.rs b/build.rs index 085da29..2fb165d 100644 --- a/build.rs +++ b/build.rs @@ -46,7 +46,7 @@ fn copy_static_files() { fn main() { let mut builder = vergen::EmitBuilder::builder(); - builder.git_describe(true, false, None); + builder.git_sha(false); builder.emit().unwrap(); watch_dir(MIGRATION_DIR.as_ref()); diff --git a/src/main.rs b/src/main.rs index d1b80d4..09569a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,12 +13,7 @@ use tracing::info; use tracing_subscriber::filter::LevelFilter; const NAME: &str = env!("CARGO_PKG_NAME"); -const VERSION: &str = concat!( - env!("CARGO_PKG_VERSION"), - " (", - env!("VERGEN_GIT_DESCRIBE"), - ")" -); +const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", env!("VERGEN_GIT_SHA"), ")"); #[derive(Debug, clap::Parser)] #[command(name = NAME, version = VERSION)]