cargo-xtask icon indicating copy to clipboard operation
cargo-xtask copied to clipboard

warning: user-defined alias `xtask` is shadowing an external subcommand

Open dyoung522 opened this issue 2 years ago • 1 comments

When installing xtask per the README, I'm getting the following error when running any xtask command:

warning: user-defined alias `xtask` is shadowing an external subcommand found at: `<homedir-redacted>/.cargo/bin/cargo-xtask`
This was previously accepted but is being phased out; it will become a hard error in a future release.
For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>.
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s

Using rustc 1.73.0 (cc66ad468 2023-10-03)

dyoung522 avatar Nov 11 '23 18:11 dyoung522

Try running cargo uninstall cargo-xtask: it seems that you have cargo-xtask sub command installed, but no such sub command is needed. It’s the thing about xtask pattern that it doesn’t rely on 3rd party utilities.

I do have https://crates.io/crates/cargo-xtask published, just to prevent some malware squatting the name.

matklad avatar Nov 11 '23 21:11 matklad