Jacob Heider 2023-02-06 16:54:26 -05:00 committed by Jacob Heider
parent ed8cc19bcb
commit 381a516062

View file

@ -10,7 +10,14 @@ build:
dependencies: dependencies:
rust-lang.org: '>=1.60' rust-lang.org: '>=1.60'
rust-lang.org/cargo: '*' rust-lang.org/cargo: '*'
script: cargo install --locked --path ruff_cli --root {{prefix}} crates.io/semverator: '*'
script: |
if semverator lt {{version}} 0.0.242; then
CRATE=ruff_cli
else
CRATE=crates/ruff_cli
fi
cargo install --locked --path $CRATE --root {{prefix}}
provides: provides:
- bin/ruff - bin/ruff