Skip to content

Commit

Permalink
Fix nightlies pipeline after rust package id spec update (#1222)
Browse files Browse the repository at this point in the history
commit-id:006f3571

---

**Stack**:
- #1220
- #1219
- #1218
- #1217
- #1216
- #1215
- #1214
- #1221
- #1222⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
  • Loading branch information
maciektr committed Jun 11, 2024
1 parent ca0f1a0 commit 5a2974b
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 5a2974b

Please sign in to comment.