Skip to content

Commit

Permalink
[SOL] Check release bump against the Solana release
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Feb 16, 2024
1 parent e3232f9 commit 827d7a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/xtask-bump-check/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
config.shell().status("Running", &cmd)?;
cmd.exec()?;

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

0 comments on commit 827d7a4

Please sign in to comment.