Switch to plain commit hash in version number
This commit is contained in:
parent
ed3600a79a
commit
de767121be
2 changed files with 2 additions and 7 deletions
2
build.rs
2
build.rs
|
|
@ -46,7 +46,7 @@ fn copy_static_files() {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut builder = vergen::EmitBuilder::builder();
|
let mut builder = vergen::EmitBuilder::builder();
|
||||||
builder.git_describe(true, false, None);
|
builder.git_sha(false);
|
||||||
builder.emit().unwrap();
|
builder.emit().unwrap();
|
||||||
|
|
||||||
watch_dir(MIGRATION_DIR.as_ref());
|
watch_dir(MIGRATION_DIR.as_ref());
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,7 @@ use tracing::info;
|
||||||
use tracing_subscriber::filter::LevelFilter;
|
use tracing_subscriber::filter::LevelFilter;
|
||||||
|
|
||||||
const NAME: &str = env!("CARGO_PKG_NAME");
|
const NAME: &str = env!("CARGO_PKG_NAME");
|
||||||
const VERSION: &str = concat!(
|
const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", env!("VERGEN_GIT_SHA"), ")");
|
||||||
env!("CARGO_PKG_VERSION"),
|
|
||||||
" (",
|
|
||||||
env!("VERGEN_GIT_DESCRIBE"),
|
|
||||||
")"
|
|
||||||
);
|
|
||||||
|
|
||||||
#[derive(Debug, clap::Parser)]
|
#[derive(Debug, clap::Parser)]
|
||||||
#[command(name = NAME, version = VERSION)]
|
#[command(name = NAME, version = VERSION)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue