-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to install on FreeBSD #2442
Comments
I think your Rust version is too low -- |
Gotcha, that does make sense. I'll see if I can update. |
I may end up waiting till April to get on 1.76. Happy to close this out till then if it does take me that long. I'll have to build from source if not, which will probably take some hours. That said, I think I misread the logs and it's actually pubgrub that has rust-version set incorrectly. Your pubgrub is a fork and I can't make issues there. No idea what your long term plans for the project are, but it seems like you can test/set rust-version accordingly with this:
(You may already be aware of this. I had no idea and just found out about it.) |
I could be missing this but it doesn't look like PubGrub has a minimum Rust version declared. Perhaps we should add one but regardless we require a newer version of Rust. Hopefully it doesn't take hours to build from source, it's generally pretty quick. |
I do think having PubGrub state the version would be nice, although for most users it may not be an issue. I meant building Rust from source, although it could also be my machine. |
I believe you can get the official prebuilt Rust binaries for FreeBSD using RustUp. https://www.rust-lang.org/tools/install
If pubgrub set its MSRV, you would have gotten a better error message. The error message would have made it clear that the project would not work in less you upgraded your Rust. So the core of the problem would still be the same. |
This should address (fix?) #2442, it blocks building with a version that doesn't support return type impl trait. ``` $ cargo +1.74 check error: package `pep508_rs v0.4.2 (/home/konsti/projects/uv/crates/pep508-rs)` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.74.1 ``` While we should encourage our dependencies to set a msrv, if we set our rust-toolchain.toml version as cargo msrv our users on no-wheel no-installer platforms will also be fine (or at least get helpful error messages).
This should address (fix?) #2442, it blocks building with a version that doesn't support return type impl trait. ``` $ cargo +1.74 check error: package `pep508_rs v0.4.2 (/home/konsti/projects/uv/crates/pep508-rs)` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.74.1 ``` While we should encourage our dependencies to set a msrv, if we set our rust-toolchain.toml version as cargo msrv our users on no-wheel no-installer platforms will also be fine (or at least get helpful error messages).
I don't think this is actionable for us. |
For those looking for alternative solutions to this,
|
This looks like an interesting project! I was excited to try it out, but alas I cannot use it on FreeBSD.
The log:
I assume this pertains to: https://github.com/rustls/hyper-rustls
Which as no issues regarding FreeBSD.
I'm no rust expert, but I've seen similar errors before when there's a new rust version that the code requires, and the package doesn't update the minimum rust required version. However, the actual issue could be totally different.
If the issue does seem to be with hyper-rustls, it seems like I should be able to reproduce it with
cargo
. If I can do that, I should be able to open an issue over there and link it to here.Does this all sound good? Would I need to run something like
cargo install hyper-rustls
?Thank you!
The text was updated successfully, but these errors were encountered: