Skip to content

Commit

Permalink
Fix nightlies pipeline after rust package id spec update
Browse files Browse the repository at this point in the history
commit-id:006f3571
  • Loading branch information
maciektr committed Mar 22, 2024
1 parent e335f73 commit 01de472
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xtask/src/nightly_release_notes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ pub fn main(_: Args) -> Result<()> {
.unwrap()
.iter()
.find(|node| {
node.get("id")
let repr = node.get("id")
.unwrap()
.as_str()
.unwrap()
.starts_with("scarb ")
.unwrap();
// The first condition for Rust >= 1.77
// (After the PackageId spec stabilization)
// The second condition for Rust < 1.77
repr.contains("scarb#") || repr.starts_with("scarb ")
})
.unwrap()
.get("deps")
Expand Down

0 comments on commit 01de472

Please sign in to comment.