Skip to content

./util/dev fmt fails #4638

Closed
Closed
@Lythenas

Description

@Lythenas

./util/dev fmt fails for me. I think this is cause by 20b7351
I think this commit changed how rustfmt is called from rustfmt to $CARGO_HOME/bin/rustfmt which is not the same on my machine.

I'm on archlinux and I installed rustup through the package manager (not sure if that makes a difference). For me the rustfmt binary is not in ~/.cargo/bin/rustfmt but in /usr/bin/rustfmt and points to /usr/bin/rustup.

Running ./util/dev fmt --verbose outputs:

    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/clippy_dev fmt --verbose`
cd /home/ms/Repos/rust-clippy/clippy_dev && /home/ms/.cargo/bin/rustfmt +nightly --version
error: No such file or directory (os error 2)

cargo is also not in ~/.cargo/bin for me but in /usr/bin/cargo which also points to /usr/bin/rustup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions