fix(ruff)

closes #4911
closes #4912
This commit is contained in:
Jacob Heider 2024-01-19 15:38:40 -05:00
parent 893a5dfb5d
commit 3596398664
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6
2 changed files with 6 additions and 2 deletions

View file

@ -14,7 +14,9 @@ build:
- run: CRATE=ruff_cli
if: <0.0.242
- run: CRATE=crates/ruff_cli
if: '>=0.0.242'
if: '>=0.0.242<0.1.14'
- run: CRATE=crates/ruff
if: '>=0.1.14'
- cargo install --locked --path $CRATE --root {{prefix}}
provides:

View file

@ -14,8 +14,10 @@ build:
script: |
if semverator lt {{version}} 0.0.242; then
CRATE=ruff_cli
else
elif semverator lt {{version}} 0.1.14; then
CRATE=crates/ruff_cli
else
CRATE=crates/ruff
fi
cargo install --locked --path $CRATE --root {{prefix}}