summaryrefslogtreecommitdiffstats
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-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)
}