aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-07-08 13:58:04 -0500
committerToby Vincent <tobyv13@gmail.com>2023-07-08 13:58:04 -0500
commit627c3b6b0419f3b2cd309e7d8253aa186a800c0b (patch)
tree75bb2ccf09cd2b5c35e76d3b2e7aa1e80ef6b7f3
parente6281f65728c588f2f6851b1b6b1a109e0d59fdd (diff)
build: update lock file after bumping Cargo.toml
-rw-r--r--xtask/src/release.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs
index 06f6e1e..d9e7015 100644
--- a/xtask/src/release.rs
+++ b/xtask/src/release.rs
@@ -97,6 +97,18 @@ impl Step {
bump.bump_file("./pkg/archlinux/projectr-bin/PKGBUILD", bump::replace)?;
bump.bump_file("./pkg/archlinux/projectr-git/PKGBUILD", bump::vsc_pkgbuild)?;
+ let cargo_update = Command::new("cargo")
+ .arg("update")
+ .arg("--workspace")
+ .status()?;
+ anyhow::ensure!(cargo_update.success(), "Failed to update cargo lockfile");
+
+ let git_added = Command::new("git")
+ .arg("add")
+ .arg("./Cargo.lock")
+ .status()?;
+ anyhow::ensure!(git_added.success(), "Failed to add Cargo.lock to git");
+
Ok(bump)
}