Skip to content

Using clippy from a rustup linked toolchain doesn't work. #2548

@vext01

Description

@vext01

Originally discussed here.

Running cargo clippy when the project's toolchain has been overridden to a linked rustup toolchain doesn't work.

$ cargo clippy
error: 'cargo-clippy' is not installed for the toolchain 'yk-stage1'
To install, run `rustup component add clippy --toolchain yk-stage1`
$ rustup toolchain list -v
nightly-x86_64-unknown-linux-gnu (default)      /home/vext01/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu                                              
yk-stage1 (override)    /home/vext01/research/yorick/ykrustc/build/x86_64-unknown-linux-gnu/stage1                                                            

But running the tool manually with a library path set does work:

LD_LIBRARY_PATH=/home/vext01/research/yorick/ykrustc/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib \
    /home/vext01/research/yorick/ykrustc/build/x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/cargo-clippy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions