rust-lang/rust

The source provided from the github repository for each release is not useable to build rust.

liaiss opened this issue · 6 comments

Hi,

It seems that the sources available in the release/tag part of the github repository, for example, https://github.com/rust-lang/rust/releases/tag/1.47.0

Failed to build (I'm using debian buster):

~/rust-1.52.0$ ./x.py build
error: failed to read `/home/parallels/rust-1.52.0/src/tools/rust-installer/Cargo.toml`

Caused by:
    No such file or directory (os error 2)
failed to run: /home/parallels/rust-1.52.0/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path    
/home/parallels/rust-1.52.0/src/bootstrap/Cargo.toml
Build completed unsuccessfully in 0:00:00

It seems the cause is that the submodules weren't updated.

To quote @Aaron1011

This is a known issue - unfortunately, there isn't a fix for it at the moment. As a workaround, you can run cargo clean -p <your_crate_name>, which will allow you to compile it.

@Aaron1011 may it be worth to pin the original issue on the issue page?

@hellow554 Thanks for the answer and sorry for this duplicate one.

... oh I'm so sorry!!! Please reopen the issue. My comment was not intended for this issue. Forget everything I said!

Ah! No worries. I will reopen it. Thanks

Those files are automatically created by github - I don't think we have any control over how it treats submodules. You should use the source distributions we link here: https://forge.rust-lang.org/infra/other-installation-methods.html#source-code.

Closing this to clear up the issue tracker. If you or anyone reading this still needs help you can consult the forums, discords, etc for help. Thanks