Skip to content

Commit

Permalink
fix: remove commit date to help nix pkg (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mierak authored Aug 15, 2024
1 parent 60d1388 commit c0e09c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
7 changes: 1 addition & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ fn generate_shell_completions(mut cmd: ClapCommand) -> Result<(), Box<dyn Error>

fn emit_git_info() -> Result<(), Box<dyn Error>> {
Emitter::default()
.add_instructions(
&GitclBuilder::default()
.commit_date(true)
.describe(false, false, None)
.build()?,
)?
.add_instructions(&GitclBuilder::default().describe(false, false, None).build()?)?
.emit()?;

Ok(())
Expand Down
14 changes: 3 additions & 11 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ fn main() -> Result<()> {
};
let config = config_file.clone().into_config(Some(&args.config))?;

println!(
"rmpc {} ({})",
env!("VERGEN_GIT_DESCRIBE"),
env!("VERGEN_GIT_COMMIT_DATE"),
);
println!("rmpc {}", env!("VERGEN_GIT_DESCRIBE"));
println!("\n{:<20} {}", "Config path", args.config.as_str()?);
println!("{:<20} {:?}", "Theme path", config_file.theme);

Expand All @@ -120,11 +116,7 @@ fn main() -> Result<()> {
println!("{}", UEBERZUGPP.display());
}
Some(Command::Version) => {
println!(
"rmpc {} ({})",
env!("VERGEN_GIT_DESCRIBE"),
env!("VERGEN_GIT_COMMIT_DATE"),
);
println!("rmpc {}", env!("VERGEN_GIT_DESCRIBE"),);
}
Some(cmd) => {
let config: &'static Config = Box::leak(Box::new(
Expand All @@ -151,7 +143,7 @@ fn main() -> Result<()> {
None => {
let (tx, rx) = std::sync::mpsc::channel::<AppEvent>();
logging::init(tx.clone()).expect("Logger to initialize");
log::debug!(rev = env!("VERGEN_GIT_DESCRIBE"), date = env!("VERGEN_GIT_COMMIT_DATE"); "rmpc started");
log::debug!(rev = env!("VERGEN_GIT_DESCRIBE"); "rmpc started");
std::thread::spawn(|| DEPENDENCIES.iter().for_each(|d| d.log()));

let (worker_tx, worker_rx) = std::sync::mpsc::channel::<WorkRequest>();
Expand Down

0 comments on commit c0e09c0

Please sign in to comment.