From 2d73608c4ebc0577511b799bac7e60a0779d9fec Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 11 Sep 2026 14:05:22 +0200 Subject: [PATCH] The actuator's git never rewrites line endings; the frozen tree is byte-exact Co-Authored-By: Claude Fable 5.1 --- src/host.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/host.rs b/src/host.rs index 6285e2a..a3699e7 100644 --- a/src/host.rs +++ b/src/host.rs @@ -907,8 +907,11 @@ fn verify_artifacts(root: &Path, release: &SealedRelease) -> Result<()> { Ok(()) } +/// git on a Windows host may be configured to rewrite line endings on +/// checkout; the frozen tree is byte-exact and so must the build input be. fn git(directory: &Path, args: &[&str]) -> Result { let output = Command::new("git") + .args(["-c", "core.autocrlf=false", "-c", "core.eol=lf"]) .args(args) .current_dir(directory) .env_clear() @@ -988,7 +991,9 @@ fn materialize( .context("reading the recipe from the fetched tree")?; ensure!( recipe == plan.recipe_blob, - "recipe in the fetched tree differs from the plan's recipe bytes" + "recipe in the fetched tree differs from the plan's recipe bytes ({} vs {} bytes)", + recipe.len(), + plan.recipe_blob.len() ); for step in &declaration.steps {