Skip to content

ci: monthly Cranelift release branch automation regex#1665

Open
0xmuon wants to merge 2 commits into
rust-lang:mainfrom
0xmuon:fix4
Open

ci: monthly Cranelift release branch automation regex#1665
0xmuon wants to merge 2 commits into
rust-lang:mainfrom
0xmuon:fix4

Conversation

@0xmuon

@0xmuon 0xmuon commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

fix: #1663

Previously, Cargo was ignoring the patch because of strict 0.a.b version mismatches between the Cargo.toml lock and new release branch. I added a sed step to temporarily replace the hardcoded Cranelift versions with a * during the CI run so Cargo accepts the patch.


- name: Patch Cargo.toml to use release branch Cranelift
run: |
sed -i -E 's/"0\.13[0-9]\.[0-9]+"/"*"/g' Cargo.toml

@0xmuon 0xmuon Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used 0\.13[0-9]\.[0-9]+ here to safely target the current0.13x.xseries and restrict the blast radius. Would you prefer I update this to a fully future-proof regex like 0\.[0-9]+\.[0-9]+ so it automatically handles the jump to 0.140.0 and beyond without breaking?

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no point to update it to [0-9]\.[0-9]+\.[0-9]+ , as cranelift version numbering so far doesn't demand it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upcoming Cranelift release CI job silently broken

1 participant