From 3ae064f1a4b0f1f855d2217cff2242dd2f06f907 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Thu, 6 Jun 2024 19:24:33 -0400 Subject: [PATCH] Fix logic to update version when HEAD changes. (#10896) --- helix-loader/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helix-loader/build.rs b/helix-loader/build.rs index a4562c00c75d7..ea0689839f380 100644 --- a/helix-loader/build.rs +++ b/helix-loader/build.rs @@ -50,6 +50,7 @@ fn main() { .ok() .filter(|output| output.status.success()) .and_then(|x| String::from_utf8(x.stdout).ok()) + .map(|x| x.trim().to_string()) else { return; }; @@ -67,6 +68,7 @@ fn main() { .ok() .filter(|output| output.status.success()) .and_then(|x| String::from_utf8(x.stdout).ok()) + .map(|x| x.trim().to_string()) else { return; };