[rust 1.66] error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index `
Categories
(Firefox Build System :: Toolchains, defect)
Tracking
(Not tracked)
People
(Reporter: glandium, Unassigned)
References
Details
Linux TSAN build fails with rustc 1.66:
[task 2022-10-26T05:37:51.943Z] 05:37:51 INFO - error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[task 2022-10-26T05:37:51.943Z] 05:37:51 INFO - Caused by:
[task 2022-10-26T05:37:51.944Z] 05:37:51 INFO - patch for `cfg-if-0.1.10` in `https://github.com/rust-lang/crates.io-index` failed to resolve
[task 2022-10-26T05:37:51.944Z] 05:37:51 INFO - Caused by:
[task 2022-10-26T05:37:51.944Z] 05:37:51 INFO - The patch location `/builds/worker/fetches/rustc/lib/rustlib/src/rust/vendor/cfg-if-0.1.10` does not appear to contain any packages matching the name `cfg-if-0.1.10`.
This suggests some recent cargo change broke our patch from build/build-rust/cargo-vendor-std.patch.
| Reporter | ||
Comment 1•3 years ago
|
||
This seems to have started with https://github.com/rust-lang/rust/commit/5095f54219d16cc67b087763044acfce09c3fc9d
| Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #1)
This seems to have started with https://github.com/rust-lang/rust/commit/5095f54219d16cc67b087763044acfce09c3fc9d
Actually, https://github.com/rust-lang/rust/commit/9286c3c3f5ff1880a27d90f8f4a4c21165f98adb.
| Reporter | ||
Comment 3•3 years ago
|
||
The patch we use for cargo is based on https://github.com/rust-lang/cargo/pull/8834, which says "Note that this design naively assumes there is only one version of each package. It does not robustly verify this, and will presumably just cryptically fail to resolve dependencies.". Well, there are now two versions of cfg-if, and we're getting a cryptic failure :)
| Reporter | ||
Comment 4•2 years ago
|
||
This had been worked around in bug 1797419, and rust 1.67 is back to only one version of cfg-if.
Description
•