Try to install clippy first from rustup and failover to github on nightly
@@ -427,10 +427,10 @@ args = ["outdated", "--root-deps-only", "--exit-code", "1"]
[tasks.post-outdated]
category = "CI"
-[tasks.install-clippy-github]
-description = "Installs the latest clippy code linter via cargo install directly from github."
+[tasks.install-clippy-any]
+description = "Installs the latest clippy code linter via cargo install via rustup or directly from github."
category = "Test"
-install_crate = "clippy"
+install_crate = { crate_name = "clippy", rustup_component_name = "clippy", binary = "cargo-clippy", test_arg = "--help" }
install_crate_args = ["--git", "https://github.com/rust-lang/rust-clippy/"]
args = [ "clippy", "--help" ]
@@ -443,7 +443,7 @@ install_crate = { rustup_component_name = "clippy", binary = "cargo-clippy", tes
description = "Installs the clippy code linter."
category = "Test"
run_task = [
- { name = "install-clippy-github", condition = { channels = ["nightly"] } },
+ { name = "install-clippy-any", condition = { channels = ["nightly"] } },
{ name = "install-clippy-rustup" }
]
