-
Notifications
You must be signed in to change notification settings - Fork 888
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
Installation of 2.0 RC fails / is surprisingly challenging #5107
Comments
Thanks for your question! There's a lot to unpack here, and that includes several items that aren't actually related to rustfmt. My tl;dr response would be that I'd advise against trying to build and use the 2.0 version from source because a 2.0 release is definitely not going to happen any time soon, and it's increasingly unlikely that there will ever be a major/breaking release of an official tool outside a holistic major/breaking release of Rust (and the rest of the official tooling). More broadly, If you are going to try to build rustfmt from source, especially on different branches, be sure to review the documentation on the respective branch, e.g. the instructions for installing rustfmt from source on that branch can be found in https://github.com/rust-lang/rustfmt/tree/rustfmt-2.0.0-rc.2#installing-from-source
This is a feature of
This is an attribute of the compiler internals (rustfmt uses some of rustc's internal modules). It's a pain but was never anything that we had any control over. I do feel like it was covered pretty thoroughly in the install instructions on that branch though
Same story here where I feel like this was detailed in the install instructions. By any chance were you trying to install based on docs on the master/1.x branch?
Can't say I've seen that before. I'd suggest trying to uninstall your prior manual install, and then follow the 2.0 installation instructions if you still really want to. Please feel free to follow up with any additional comments/questions/observations/etc., but I am going to go ahead and close this issue. That's due to the strategy outlined above and an acknowledgement of the fact that we aren't in a position to take action nor provide additional troubleshooting around installations from a source branch that's bordering on dead. |
@calebcartwright Thanks a lot for that detailed explanation!
The problem is that we have projects that must rely on unstable features. In particular, the decision was to use rustfmt only if it is possible to have The goal now was to find a way to run 2.0 reliably in CI jobs. The approach with |
I'm trying to install the latest version of the 2.0 release candidate, but I'm running into quite some challenges. After a while of experimenting I've arrived at:
I was hoping this should work because:
rustfmt-2.0.0-rc.2
branch.rust-toolchain
file on that branch.Unfortunately I'm facing a number of issues:
--profile minimal
because otherwise there was a rustfmt related error during the toolchain setup.CFG_RELEASE
variable the build fails, and digging through the repo indicated that I need a value of"nightly"
.rustfmt
but fails for the other binaries. Specifically I'm now stuck at this error:Is this an issue that I can fix on my side or is there something broken on that branch?
The text was updated successfully, but these errors were encountered: