From 381a516062b08080125f7039bb342f75d0bfa806 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 6 Feb 2023 16:54:26 -0500 Subject: [PATCH] fix(ruff) resolves https://github.com/teaxyz/pantry.core/issues/205 resolves https://github.com/teaxyz/pantry.core/issues/206 resolves https://github.com/teaxyz/pantry.core/issues/207 resolves https://github.com/teaxyz/pantry.core/issues/208 --- projects/github.com/charliermarsh/ruff/package.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/github.com/charliermarsh/ruff/package.yml b/projects/github.com/charliermarsh/ruff/package.yml index e2d35cf3..3c1fe9fb 100644 --- a/projects/github.com/charliermarsh/ruff/package.yml +++ b/projects/github.com/charliermarsh/ruff/package.yml @@ -10,7 +10,14 @@ build: dependencies: rust-lang.org: '>=1.60' 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: - bin/ruff