From 9afb8ac8fd13729e7e754094984877eb22971a69 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:40:48 -0500 Subject: [PATCH] fix: restore short git SHA in version banner The vergen 8 -> vergen-gitcl 10 migration (build: upgrade vergen 8 -> vergen-gitcl 10) switched from EmitBuilder::git_sha(true) (short SHA) to Gitcl::all_git(), which defaults to the full 40-char SHA. The version banner (bbl_parser 1.0.1 ()) now prints the full hash instead of the short one used since 1.0.0. Use Gitcl::all().sha(true).build() to restore short-SHA output while keeping all other VERGEN_GIT_* instructions enabled. Co-Authored-By: Claude Sonnet 5 --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index ec799e9..6aec2b0 100644 --- a/build.rs +++ b/build.rs @@ -3,7 +3,7 @@ use vergen_gitcl::{Emitter, Gitcl}; fn main() -> Result<()> { Emitter::default() - .add_instructions(&Gitcl::all_git())? + .add_instructions(&Gitcl::all().sha(true).build())? .emit()?; Ok(()) }