From a6cfdd6a8e12db84c3bf2bcc86329e59ba6ce17e Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 29 Apr 2024 09:58:12 -0400 Subject: [PATCH] ci: exclude semver check for `cargo` against referenced commit We always bump major versions for `cargo` package, so the risk of shipping breaking change should be zero. We still verify against crates.io as a sanity check. --- crates/xtask-bump-check/src/xtask.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/xtask-bump-check/src/xtask.rs b/crates/xtask-bump-check/src/xtask.rs index a53a0a8bcfb0..756aed2a77f3 100644 --- a/crates/xtask-bump-check/src/xtask.rs +++ b/crates/xtask-bump-check/src/xtask.rs @@ -178,6 +178,8 @@ fn bump_check(args: &clap::ArgMatches, gctx: &cargo::util::GlobalContext) -> Car let mut cmd = ProcessBuilder::new("cargo"); cmd.arg("semver-checks") .arg("--workspace") + // We don't want to confuse when a new beta just branched off + .args(&["--exclude", "cargo"]) .args(&["--exclude", "cargo-test-macro"]) // FIXME: Remove once 1.79 is stable. .args(&["--exclude", "cargo-test-support"]) // FIXME: Remove once 1.79 is stable. .arg("--baseline-rev")