Skip to content

Compiler build toolchain does not respect build-dir for cargo bash completions #113728

@samkhn

Description

@samkhn

I am compiling the rust toolchain from source (this includes cargo, clippy, rustdoc, rust-analyzer and src). I am installing it in a custom folder in my home directory.

When I run ./x.py install, it appropriately compiles and installs all of those binaries. However, along the way, the script invokes a copy to /etc/bash_completions.d/cargo and appropriately logs that it doesn't have permissions.

I expect that ./x.py will respect my build-dir argument and try to install the bash completions in build-dir/etc instead of /etc

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