diff --git a/CHANGELOG.md b/CHANGELOG.md index 0899c1e..eb6b070 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com - auth: auto fetch after login - (un)track: show hint after (un)track - pull: id not found hint improve +- cli version: remove git timestamp ## [0.2.18] - 2024-06-04 diff --git a/fav_cli/build.rs b/fav_cli/build.rs index 86561db..153e540 100644 --- a/fav_cli/build.rs +++ b/fav_cli/build.rs @@ -4,7 +4,6 @@ fn main() { EmitBuilder::builder() .fail_on_error() .git_describe(false, true, None) - .git_commit_timestamp() .emit() .ok(); EmitBuilder::builder() diff --git a/fav_cli/src/bili/mod.rs b/fav_cli/src/bili/mod.rs index 6073838..a5a2dcc 100644 --- a/fav_cli/src/bili/mod.rs +++ b/fav_cli/src/bili/mod.rs @@ -9,15 +9,11 @@ use fav_utils::bili::BiliSets; use tracing::{error, info}; const VERSION: &str = const_format::formatcp!( - "{} {}\nRUSTC: {} {} {}", + "{}\nRUSTC: {} {} {}", match option_env!("VERGEN_GIT_DESCRIBE") { Some(var) => var, _ => concat!(env!("CARGO_PKG_VERSION"), "(CARGO_PKG_VERSION)"), }, - match option_env!("VERGEN_GIT_COMMIT_TIMESTAMP") { - Some(var) => var, - _ => "unknown-timestamp", - }, env!("VERGEN_RUSTC_HOST_TRIPLE"), env!("VERGEN_RUSTC_CHANNEL"), env!("VERGEN_RUSTC_SEMVER")