From 95d088c4292a4dc6cbec7e479e3d7e8872134ddb Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 10 Sep 2026 23:12:53 +0800 Subject: [PATCH] Add build-up-to Pixi task Signed-off-by: Maurice --- pixi.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pixi.toml b/pixi.toml index c84d6b61a..8f3a60025 100644 --- a/pixi.toml +++ b/pixi.toml @@ -48,6 +48,12 @@ cmd = "rattler-build build --recipe-dir ./recipes -m ./conda_build_config.yaml - depends-on = ["generate-recipes"] description = "Build all packages, from the ./recipes dir. This will skip already existing packages, so it can be used to build only a subset of packages by first removing the recipes of the packages you want to rebuild (see `pixi remove-recipes`)." +[tasks.build-up-to] +cmd = "rattler-build build --recipe-dir ./recipes --up-to {{ PACKAGE }} -m ./conda_build_config.yaml -c https://prefix.dev/robostack-rolling -c https://prefix.dev/conda-forge --skip-existing" +depends-on = ["generate-recipes"] +args = [{ arg = "PACKAGE" }] +description = "Build the dependency chain up to a package, from the ./recipes dir. Pass the package name as a positional argument with the `ros-rolling-` prefix, e.g. `pixi run build-up-to ros-rolling-nav2-smac-planner`." + [tasks.remove-recipes] cmd = "rm -rf recipes_only_patch; rm -rf recipes; mkdir recipes" description = "Remove all generated recipes, before regenerating them."