mirror of
https://github.com/rust-lang/cargo
synced 2024-09-18 07:12:12 +00:00
ci: bump cargo-semver-checks to 0.24.0
Also remove workaround since the issue was fixed in upstream.
This commit is contained in:
parent
637ade0e6a
commit
60539e94dc
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -98,7 +98,7 @@ jobs:
|
|||
- name: Install cargo-semver-checks
|
||||
run: |
|
||||
mkdir installed-bins
|
||||
curl -Lf https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.22.1/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz \
|
||||
curl -Lf https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.24.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz \
|
||||
| tar -xz --directory=./installed-bins
|
||||
echo `pwd`/installed-bins >> $GITHUB_PATH
|
||||
- run: ci/validate-version-bump.sh
|
||||
|
|
|
@ -148,26 +148,13 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
|
|||
anyhow::bail!(msg)
|
||||
}
|
||||
|
||||
// Tracked by https://github.com/obi1kenobi/cargo-semver-checks/issues/511
|
||||
let exclude_args = [
|
||||
"--exclude",
|
||||
"cargo-credential-1password",
|
||||
"--exclude",
|
||||
"cargo-credential-libsecret",
|
||||
"--exclude",
|
||||
"cargo-credential-macos-keychain",
|
||||
"--exclude",
|
||||
"cargo-credential-wincred",
|
||||
];
|
||||
|
||||
// Even when we test against baseline-rev, we still need to make sure a
|
||||
// change doesn't violate SemVer rules against crates.io releases. The
|
||||
// possibility of this happening is nearly zero but no harm to check twice.
|
||||
let mut cmd = ProcessBuilder::new("cargo");
|
||||
cmd.arg("semver-checks")
|
||||
.arg("check-release")
|
||||
.arg("--workspace")
|
||||
.args(&exclude_args);
|
||||
.arg("--workspace");
|
||||
config.shell().status("Running", &cmd)?;
|
||||
cmd.exec()?;
|
||||
|
||||
|
@ -176,8 +163,7 @@ fn bump_check(args: &clap::ArgMatches, config: &cargo::util::Config) -> CargoRes
|
|||
cmd.arg("semver-checks")
|
||||
.arg("--workspace")
|
||||
.arg("--baseline-rev")
|
||||
.arg(referenced_commit.id().to_string())
|
||||
.args(&exclude_args);
|
||||
.arg(referenced_commit.id().to_string());
|
||||
config.shell().status("Running", &cmd)?;
|
||||
cmd.exec()?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue