Skip to content
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

./x.py fails to bootstrap if build.vendor is set in config.toml #96456

Closed
yungkneez opened this issue Apr 27, 2022 · 0 comments · Fixed by #96457
Closed

./x.py fails to bootstrap if build.vendor is set in config.toml #96456

yungkneez opened this issue Apr 27, 2022 · 0 comments · Fixed by #96457
Labels
C-bug Category: This is a bug.

Comments

@yungkneez
Copy link
Contributor

Steps to reproduce:

1. Clone the repository

git clone https://github.com/rust-lang/rust.git
cd rust
cp config.toml.example config.toml

2. Modify config.toml to set build.vendor = true

3. Start the bootstrap:

./x.py help

I expected to see this happen: x.py builds the bootstrap and runs the subcommand

Instead, this happened:

error: failed to read `<hidden>/rust/./src/tools/rust-analyzer/Cargo.toml`

Caused by:
    No such file or directory (os error 2)
failed to run: <hidden>/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo vendor --sync=./src/tools/rust-analyzer/Cargo.toml --sync=./compiler/rustc_codegen_cranelift/Cargo.toml

Cause

rust-analyzer is not checked out in src/bootstrap/bootstrap.py:

submodules = [
"src/tools/rust-installer",
"src/tools/cargo",
"src/tools/rls",
"src/tools/miri",
"library/backtrace",
"library/stdarch"
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant