From 35963986648bca81428da878b3ab3ca947f0b52a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 19 Jan 2024 15:38:40 -0500 Subject: [PATCH] fix(ruff) closes #4911 closes #4912 --- projects/astral.sh/ruff/package.yml | 4 +++- projects/github.com/charliermarsh/ruff/package.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/astral.sh/ruff/package.yml b/projects/astral.sh/ruff/package.yml index be4b033c..13081840 100644 --- a/projects/astral.sh/ruff/package.yml +++ b/projects/astral.sh/ruff/package.yml @@ -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: diff --git a/projects/github.com/charliermarsh/ruff/package.yml b/projects/github.com/charliermarsh/ruff/package.yml index 9c9ef587..cbc1e0fc 100644 --- a/projects/github.com/charliermarsh/ruff/package.yml +++ b/projects/github.com/charliermarsh/ruff/package.yml @@ -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}}