nightly-2024-04-12
selects incorrect version of git dependency
#13749
Labels
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
When using the
nightly-2024-04-12
toolchain, the exact revision of a git dependency is sometimes selected incorrectly. The compiler will state that it is compiling the correct revision (read: the version specified in the Cargo.toml) of this git dependency, but when invoked with-v
, it will show that it's compiling a different version of this git dependency. This discrepancy can be shown in the following lines of output fromcargo +nightly-2024-04-12 check
:You can see here that it says it's checking revision
1876f7
, but actually invokesrustc
on the checkout revision3438f0
.I checked previous versions of the nightly toolchain, and this issue does not appear on anywhere between 2024-04-08 - 2024-04-11, so it was probably introduced in the 2024-04-12 version.
I haven't got a minimal reproduction working, but this issue was found by:
rm rust-toolchain.toml
cargo +nightly check
I have not tested it on any other repos (besides zed) or targets (besides
aarch64-unknown-linux-gnu
)Steps
git clone https://github.com/zed-industries/zed.git
cd zed
rm rust-toolchain.toml
rustup install nightly-2024-04-12
cargo +nightly-2024-04-12 check
Possible Solution(s)
I don't know - I haven't yet identified what this could be caused by
Notes
I haven't yet tried to get a minimal reproduction - if it isn't easy to find the source of this, I'm happy to put some time into that.
Version
The text was updated successfully, but these errors were encountered: