mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 19:31:38 +03:00
6cea9813ad
This fixes an extra 10 second delay when needing to recompile xtask, and allows passing arbitrary clippy args (like --allow-dirty) Release Notes: - N/A
11 lines
234 B
Bash
Executable File
11 lines
234 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ ! " $* " == *" -p "* && ! " $* " == *" --package "* ]]; then
|
|
set -- "$@" --workspace
|
|
fi
|
|
|
|
set -x
|
|
"${CARGO:-cargo}" clippy "$@" --release --all-targets --all-features -- --deny warnings
|