-
Notifications
You must be signed in to change notification settings - Fork 440
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
Upstream Rust tools requiring rustc #1768
Comments
cc @illicitonion @scentini @krasimirgg for thoughts 🙏 |
I've also not done any bisecting at this time to find what the specific change was between |
An additional data-point. The hope in splitting |
It's kinda unfortunate that we'll need a Just to clarify, the issue from above w.r.t. |
This upstream change also broke
|
we just encountered this issue as above when trying to upgrade to 0.22:
On rust version 1.65 Update: was able to work around this by specifying |
Over the last few years I've made some changes that attempt to split the current
rust_toolchain
into multiple toolchains for components that are not typically required for compiling Rust code:rustfmt_toolchain
and refactored toolchain repository rules #1719I'm starting to wonder if this is going against the grain. I'd recently opened #1767 and noticed build failures related to
rustfmt
being unable to locatelibrustc-driver.so
I'd noticed in the past that
clippy
also has issues working withoutrustc
being installed (not symlinked) relative to the location of theclippy-driver
binary. While I still think it would be ideal for each tool the Rust org ships (cargo, clippy, rust-analyzer, rustfmt) to exist as it's own toolchain that's only downloaded when needed. There seems to be more reasons to download all tools to one place as more and more things are requiringrustc
.That said, I'm wondering if it would make more sense to do away with things like
rustfmt_toolchain
andrust_analyzer_toolchain
and to instead download all components into one toolchain.An alternative could be downloading duplicate artifacts, which, in practice, would only result in extracting the same archives into multiple directories. This is something that's already been explored in #1641 by adding
rustc
directly torust_analyzer_toolchain_repository
but may not be ideal as now there's a potential for multiplerustc
binaries with drifting versions.I'm wondering if other folks have suggestions on how to handle the errors mentioned above and what to do about the Rust org seemingly expanding reliance on
rustc
. I don't necessarily have an issue with that, but want to do what I can to minimize time spent in the analysis phase and ensure no unnecessary inputs are included inRustc
actions.Other related issues:
experimental_individual_tool_repositories
#1163The text was updated successfully, but these errors were encountered: