Skip to content

Commit 84bc608

Browse files
committed
xtask: Fix package builds
No idea how it worked before; we don't want to include the diff output which can lead to us failing to parse an integer: ``` error: Packaging Caused by: 0: Finding git timestamp 1: invalid digit found in string ``` Signed-off-by: Colin Walters <[email protected]>
1 parent 652771d commit 84bc608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/xtask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn gitrev(sh: &Shell) -> Result<String> {
7070
/// but not second because, well, we're not going to build more than once a second.
7171
#[context("Finding git timestamp")]
7272
fn git_timestamp(sh: &Shell) -> Result<String> {
73-
let ts = cmd!(sh, "git show --format=%ct").read()?;
73+
let ts = cmd!(sh, "git show -s --format=%ct").read()?;
7474
let ts = ts.trim().parse::<i64>()?;
7575
let ts = chrono::NaiveDateTime::from_timestamp_opt(ts, 0)
7676
.ok_or_else(|| anyhow::anyhow!("Failed to parse timestamp"))?;

0 commit comments

Comments
 (0)