Skip to content

bootstrap.py doesn't work with vendoring and CARGO_HOME environment variable #106019

@mikebenfield

Description

@mikebenfield

If I specify a CARGO_HOME location and put a config in it and try to use vendoring, bootstrap.py now fails in check_vendored_status due to not having a .cargo/config; for some reason it ignores CARGO_HOME.

See here for my attempt to fix this, but that fails because cargo_dir cannot be removed in some cases. I don't even know why it wants to remove cargo_dir in the first place, so maybe someone who actually understands what this code is trying to accomplish could fix it instead of me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions