From a9b73688473662cc26c074c87c3dd95fb547a62d Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 14 Apr 2023 00:50:35 +0200 Subject: [PATCH] Revert "Use version from git-describe to better identify builds" --- src/build.rs | 5 +---- src/statics.rs | 3 +-- templates/base.rs.html | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/build.rs b/src/build.rs index 953557a..5490f9c 100644 --- a/src/build.rs +++ b/src/build.rs @@ -3,10 +3,7 @@ use ructe::Ructe; use vergen::EmitBuilder; fn main() -> Result<()> { - EmitBuilder::builder() - .git_sha(true) - .git_describe(true, true, None) - .emit()?; + EmitBuilder::builder().git_sha(true).emit()?; let mut ructe = Ructe::from_env()?; let mut statics = ructe.statics()?; diff --git a/src/statics.rs b/src/statics.rs index 8469ad1..3e799f2 100644 --- a/src/statics.rs +++ b/src/statics.rs @@ -5,8 +5,7 @@ pub struct VersionInfo<'a> { pub(crate) const VERSION_INFO: VersionInfo = VersionInfo { commit: env!("VERGEN_GIT_SHA"), - version: env!("VERGEN_GIT_DESCRIBE"), - // version: env!("CARGO_PKG_VERSION"), + version: env!("CARGO_PKG_VERSION"), }; lazy_static! { diff --git a/templates/base.rs.html b/templates/base.rs.html index b895835..da9a3cf 100644 --- a/templates/base.rs.html +++ b/templates/base.rs.html @@ -35,7 +35,7 @@