Skip to content

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

Closed
@yungkneez

Description

@yungkneez

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"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions