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