mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
chore(bump-check): dont check home against beta/stable branches
The publish of home is not tied with Rust release process, hence.
This commit is contained in:
parent
078a65bffb
commit
516313379e
@ -118,6 +118,11 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
|
||||
let changed_members = changed(&ws, &repo, &base_commit, &head_commit)?;
|
||||
let status = |msg: &str| config.shell().status(STATUS, msg);
|
||||
|
||||
// Don't check against beta and stable branches,
|
||||
// as the publish of these crates are not tied with Rust release process.
|
||||
// See `TO_PUBLISH` in publish.py.
|
||||
let crates_not_check_against_channels = ["home"];
|
||||
|
||||
status(&format!("base commit `{}`", base_commit.id()))?;
|
||||
status(&format!("head commit `{}`", head_commit.id()))?;
|
||||
|
||||
@ -129,6 +134,11 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
|
||||
status(&format!("compare against `{}`", referenced_commit.id()))?;
|
||||
for referenced_member in checkout_ws(&ws, &repo, referenced_commit)?.members() {
|
||||
let pkg_name = referenced_member.name().as_str();
|
||||
|
||||
if crates_not_check_against_channels.contains(&pkg_name) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let Some(changed_member) = changed_members.get(pkg_name) else {
|
||||
tracing::trace!("skipping {pkg_name}, may be removed or not published");
|
||||
continue;
|
||||
@ -169,6 +179,9 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
|
||||
.args(&["--exclude", "rustfix"]) // FIXME: Remove once 1.76 is stable
|
||||
.arg("--baseline-rev")
|
||||
.arg(referenced_commit.id().to_string());
|
||||
for krate in crates_not_check_against_channels {
|
||||
cmd.args(&["--exclude", krate]);
|
||||
}
|
||||
config.shell().status("Running", &cmd)?;
|
||||
cmd.exec()?;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user