@@ -118,6 +118,11 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
118
118
let changed_members = changed ( & ws, & repo, & base_commit, & head_commit) ?;
119
119
let status = |msg : & str | config. shell ( ) . status ( STATUS , msg) ;
120
120
121
+ // Don't check against beta and stable branches,
122
+ // as the publish of these crates are not tied with Rust release process.
123
+ // See `TO_PUBLISH` in publish.py.
124
+ let crates_not_check_against_channels = [ "home" ] ;
125
+
121
126
status ( & format ! ( "base commit `{}`" , base_commit. id( ) ) ) ?;
122
127
status ( & format ! ( "head commit `{}`" , head_commit. id( ) ) ) ?;
123
128
@@ -129,6 +134,11 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
129
134
status ( & format ! ( "compare against `{}`" , referenced_commit. id( ) ) ) ?;
130
135
for referenced_member in checkout_ws ( & ws, & repo, referenced_commit) ?. members ( ) {
131
136
let pkg_name = referenced_member. name ( ) . as_str ( ) ;
137
+
138
+ if crates_not_check_against_channels. contains ( & pkg_name) {
139
+ continue ;
140
+ }
141
+
132
142
let Some ( changed_member) = changed_members. get ( pkg_name) else {
133
143
tracing:: trace!( "skipping {pkg_name}, may be removed or not published" ) ;
134
144
continue ;
@@ -169,6 +179,9 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
169
179
. args ( & [ "--exclude" , "rustfix" ] ) // FIXME: Remove once 1.76 is stable
170
180
. arg ( "--baseline-rev" )
171
181
. arg ( referenced_commit. id ( ) . to_string ( ) ) ;
182
+ for krate in crates_not_check_against_channels {
183
+ cmd. args ( & [ "--exclude" , krate] ) ;
184
+ }
172
185
config. shell ( ) . status ( "Running" , & cmd) ?;
173
186
cmd. exec ( ) ?;
174
187
}
0 commit comments