Skip to content

Commit

Permalink
chore: dont check cargo-util semver until 1.86 is released
Browse files Browse the repository at this point in the history
This fixes the current confusing failures in our CI pipeline:

* https://github.com/rust-lang/cargo/actions/runs/13465687015/job/37630870984
* https://github.com/rust-lang/cargo/actions/runs/13469881475/job/37642079118

CI job failed because of this major SemVer breakage:

```diff
-pub fn strip_prefix_canonical<P: AsRef<Path>>(
-    path: P,
-    base: P,
+pub fn strip_prefix_canonical(
+    path: impl AsRef<Path>,
+    base: impl AsRef<Path>,
 ) -> Result<PathBuf, std::path::StripPrefixError> {
```

While cargo-util does have that change violating SemVer,
it is unlikely people use it with turbo-fish syntax.
And cargo-util is essentially for internal use.

See:

* https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/check-version-bump.20failure
* https://forge.rust-lang.org/policies/crate-ownership.html#internal-use
  • Loading branch information
weihanglo committed Feb 22, 2025
1 parent 1d1d646 commit 80331b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/xtask-bump-check/src/xtask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,18 @@ fn bump_check(args: &clap::ArgMatches, gctx: &cargo::util::GlobalContext) -> Car
let mut cmd = ProcessBuilder::new("cargo");
cmd.arg("semver-checks")
.arg("check-release")
// Don't check cargo-util util 1.86 is released.
// While it does have a SemVer breakage,
// it is unlikely people use it with turbo-fish syntax.
// And cargo-util is essentially for internal use.
//
// See:
//
// * https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/check-version-bump.20failure
// * https://forge.rust-lang.org/policies/crate-ownership.html#internal-use
.args(&["--exclude", "cargo-util"])
.arg("--workspace");

gctx.shell().status("Running", &cmd)?;
cmd.exec()?;
if github {
Expand Down

0 comments on commit 80331b1

Please sign in to comment.