-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Rustfmt is not vendored correctly #52029
Comments
@Mark-Simulacrum it should come from this update of RLS #51407 which reached beta branch. The problem is similar to #42719 (same problem but for a different rust release). |
Full log with a build with Rust 1.27.0 :
|
If someone wants to prepare a patch for this that would be great; otherwise we'll probably discuss this during next week's infra meeting and confirm that the suggested fix is the right one. |
We discussed this in the infrastructure meeting and the general conclusion was that @alexcrichton is probably not going to fix this themselves but that a fix is likely to be reviewed. @semarie or @bugabinga either of you interested in writing up a PR? |
tidy: add a new test for external dependencies ensure all packages in Cargo.lock will be vendored, and fail if the source packages isn't whitelisted. the purpose is to avoid such kind of issues: - #52029 Rustfmt isn't vendored correctly - #42719 building beta with vendor=true fail due to network dependencies as Rust comes with several external dependencies (clippy, miri, rustfmt, rls), it is important to have a way to catch some errors in the update of this submodules. The new check in tidy quickly reads `Cargo.lock` to search for the `source` of all packages. This attribute is present when the package comes from external source (like `crates.io-index` or some `git` repository). Some sources are whitelisted (like `crates.io-index`) as the crates are vendored. `Cargo.lock` extract with several cases (git, crates.io, and local). ``` [[package]] name = "rustfmt-nightly" version = "0.8.2" source = "git+https://github.com/rust-lang-nursery/rustfmt?rev=5e5992517d3591e2708d4ca6b155dfcbdf3344b9#5e5992517d3591e2708d4ca6b155dfcbdf3344b9" dependencies = [ ... ] [[package]] name = "same-file" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ ... ] [[package]] name = "rustdoc-themes" version = "0.1.0" ``` r? @alexcrichton
use vendored rustfmt-nightly (src/tools/rustfmt) Fixes: #52029
Fixed and backported by #52419. |
rust/src/Cargo.toml
Line 67 in 860d169
I think this line should be
[patch."https://github.com/rust-lang-nursery/rustfmt"]
.RLS switched its depenence on rustfmt to a git dependency some time ago.
This came up while looking into semarie/build-rust#9.
The text was updated successfully, but these errors were encountered: