diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-06-22 14:39:15 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-07-08 11:43:16 -0500 |
commit | d5af0a52b60efcbb832b63962b273fcc70c24ff0 (patch) | |
tree | 5b8083ac6357852b1316dd79f66da1ca57e1fcf8 /xtask/src/release.rs | |
parent | ae8dd8c6e5c419f91b9a9ca4e270862b18c5c599 (diff) |
build: fix bump read/write
Diffstat (limited to 'xtask/src/release.rs')
-rw-r--r-- | xtask/src/release.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<Bump> { 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( |