Skip to content

Commit 827d7a4

Browse files
committed
[SOL] Check release bump against the Solana release
1 parent e3232f9 commit 827d7a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/xtask-bump-check/src/xtask.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
158158
config.shell().status("Running", &cmd)?;
159159
cmd.exec()?;
160160

161+
// This test does not work for Solana because we are running
162+
// it against a too old version of cargo.
163+
#[cfg(target_os = "solana")]
161164
if let Some(referenced_commit) = referenced_commit.as_ref() {
162165
let mut cmd = ProcessBuilder::new("cargo");
163166
cmd.arg("semver-checks")
@@ -272,8 +275,8 @@ fn beta_and_stable_branch(repo: &git2::Repository) -> CargoResult<[git2::Branch<
272275
for branch in repo.branches(Some(git2::BranchType::Remote))? {
273276
let (branch, _) = branch?;
274277
let name = branch.name()?.unwrap();
275-
let Some((_, version)) = name.split_once("/rust-") else {
276-
tracing::trace!("branch `{name}` is not in the format of `<remote>/rust-<semver>`");
278+
let Some((_, version)) = name.split_once("/solana-") else {
279+
tracing::trace!("branch `{name}` is not in the format of `<remote>/solana-<semver>`");
277280
continue;
278281
};
279282
let Ok(version) = version.parse::<semver::Version>() else {

0 commit comments

Comments
 (0)