Skip to content

Commit

Permalink
feat: include build sha in doctor output (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante authored Sep 18, 2024
1 parent 3896247 commit f26be1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/cli/src/commands/doctor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ pub(crate) async fn run_doctor(_arg: DoctorArgs) -> Result<()> {
info!(" OS: {}", target_os.yellow());
info!(" Architecture: {}", target_arch.yellow());

let github_sha = option_env!("GITHUB_SHA");
let grit_sha = option_env!("GRIT_BUILD_SHA");
if let Some(build_sha) = grit_sha.or(github_sha) {
info!(" Build SHA: {}", build_sha.yellow());
} else {
info!(" Build SHA: unknown");
}

let mut updater = Updater::from_current_bin().await?;

info!("{}", "Configuration".bold());
Expand Down

0 comments on commit f26be1b

Please sign in to comment.