-
Notifications
You must be signed in to change notification settings - Fork 465
It may be best to yank version 1.5.0 #931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ah okay, looking at the compilation error, it looks you're trying to build So I can reproduce your problem by using this in my
And then:
This was fixed in the
The To me, yanking is useful when you wouldn't otherwise notice something was wrong but really really really should upgrade. Of course, I'm happy to be pragmatic about such things. If yanking is a solution to a problem that is wreaking havoc, I'm happy to entertain it then too, whatever the reason may be. But I don't think this issue fits that criteria either. |
That's unfortunate. The |
…f-literal` feature When building a crate that depends on `bindgen` with `-Zminimal-features`, `cargo` ends up selecting `regex 1.5.0` which fails to compile when its `perf-literal` feature wasn't enabled. This was aptly fixed in `1.5.1`, albeit without yanking the `1.5.0` release. rust-lang/regex#931
A yanked crate is only used when it's in a lock file. But if a yanked crate is not in a lock file, then Cargo should never put it in a lock file. At least, that is my understanding of how yanking works. Whether it applies to your bindgen example depends on whether bindgen should set a higher minimal version if it doesn't build with 1.5.0. That's the right fix here. |
rust-lang/rust-bindgen#2714 fix is here. The bindgen repository uses a EDIT: As of writing they're locked to |
…f-literal` feature When building a crate that depends on `bindgen` with `-Zminimal-features`, `cargo` ends up selecting `regex 1.5.0` which fails to compile when its `perf-literal` feature wasn't enabled. This was aptly fixed in `1.5.1`, albeit without yanking the `1.5.0` release. rust-lang/regex#931
To solve rust-lang/regex#931 when the CI builds `--all-features` on a `-Zminimal-versions` lockfile.
…r module syntax' on MacOS by bumping regex per rust-lang/regex#931.
Just noticing that |
What version of regex are you using?
We have a test system that forces the version back to the lowest compatible with our dependency specification. That was, briefly, 1.5.0.
Describe the bug at a high level.
regex seems not to compile with this error:
What are the steps to reproduce the behavior?
Was briefly compiling HEAD of project stratisd w/ regex version spec set to "1.5.0".
Also, ran command:
cargo update [email protected] --precise 1.5.0
to set actual version in Cargo.lock to 1.5.0.Saw above error, which will also be visible at this URL: https://github.com/stratis-storage/stratisd/actions/runs/3567286163/jobs/5994792307 (scroll to bottom).
What is the actual behavior?
regex fails to compile w/ the error shown above.
What is the expected behavior?
regex compiles.
The text was updated successfully, but these errors were encountered: