From d5af0a52b60efcbb832b63962b273fcc70c24ff0 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 22 Jun 2023 14:39:15 -0500 Subject: build: fix bump read/write --- xtask/src/release.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xtask/src/release.rs') diff --git a/xtask/src/release.rs b/xtask/src/release.rs index acb8888..b53c838 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -85,11 +85,11 @@ impl Step { pub fn bump(level: Level) -> Result { let mut bump = Bump::from(level); - bump.bump_file("Cargo.toml", bump::replace_cargo)?; - bump.bump_file("README.md", bump::replace)?; - bump.bump_file("pkg/archlinux/projectr/PKGBUILD", bump::replace)?; - bump.bump_file("pkg/archlinux/projectr-bin/PKGBUILD", bump::replace)?; - bump.bump_file("pkg/archlinux/projectr-git/PKGBUILD", |buf, _| { + bump.bump_file("./Cargo.toml", bump::replace_cargo)?; + bump.bump_file("./README.md", bump::replace)?; + bump.bump_file("./pkg/archlinux/projectr/PKGBUILD", bump::replace)?; + bump.bump_file("./pkg/archlinux/projectr-bin/PKGBUILD", bump::replace)?; + bump.bump_file("./pkg/archlinux/projectr-git/PKGBUILD", |buf, _| { let stdout = std::process::Command::new("git") .arg("describe") .arg("--long") @@ -111,7 +111,7 @@ impl Step { } })?; - bump.bump_file("CHANGELOG.md", |buf, Bump { version: _, next }| { + bump.bump_file("./CHANGELOG.md", |buf, Bump { version: _, next }| { let date = chrono::Utc::now().format("%Y-%m-%d"); Ok(buf .replace( -- cgit v1.2.3-70-g09d2