Repository navigation
Closed
Labels
Description
Checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
Found while trying to build agnocast with pixi-build:
$ pixi lock
Error: × failed to solve requirements of environment 'default' for platform 'linux-64'
╰─▶ × the build backend (pixi-build-ros) exited prematurely.
│ Build backend output:
│
│
│ thread 'main' (1241979) panicked at /home/conda/feedstock_root/build_artifacts/bld/
│ rattler-build_pixi-build-ros_1780393469/build_env/.cargo/git/checkouts/rattler-build-
│ 5c6d2407a545b614/22f5d08/crates/rattler_build_recipe/src/stage0/match_spec.rs:64:18:
│ Invalid MatchSpec: InvalidPackageNameMatcher(PackageName { name: "${{", source:
│ InvalidCharacters("${{") })
│ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrac
Minimal example:
- init project and clone
agnocast:
mkdir ~/pixi_agnocast
cd ~/pixi_agnocast
pixi init . -c conda-forge -c robostack-humbl
git clone -b 2.3.3 https://github.com/tier4/agnocast.git- create and run
gen_pixi_package_toml.shto generate simplepixi.tomlfor each package:
#!/bin/bash
pkgs=$(find . -name package.xml)
for pkg in $pkgs; do
pkg_dir=$(dirname "$pkg")
echo "creating $pkg_dir"/pixi.toml
cat > "$pkg_dir"/pixi.toml << 'EOF'
[package.build.backend]
channels = ["https://prefix.dev/conda-forge"]
name = "pixi-build-ros"
version = "*"
EOF
done- Edit workspace
pixi.toml:
[workspace]
authors = ["Vincent Richard <[email protected]>"]
channels = ["conda-forge", "robostack-humble"]
name = "pixi_agnocast"
platforms = ["linux-64"]
version = "0.1.0"
preview = ["pixi-build"]
[dependencies]
python = "*"
compilers = "*"
cmake = "*"
pkg-config = "*"
make = "*"
ninja = "*"
rosdep = "*"
ros-humble-desktop = "*"
[dev]
# ros-humble-agnocast-sample-application = { path="agnocast/src/agnocast_sample_application" }
# ros-humble-agnocast-ioctl-wrapper = { path="agnocast/src/agnocast_ioctl_wrapper" }
# ros-humble-agnocast-components = { path="agnocast/src/agnocast_components" }
# ros-humble-agnocast = { path="agnocast/src/agnocast" }
ros-humble-agnocast-cie-thread-configurator = { path="agnocast/src/agnocast_cie_thread_configurator" }
# ros-humble-ros2agnocast = { path="agnocast/src/ros2agnocast" }
ros-humble-agnocast-cie-config-msgs = { path="agnocast/src/agnocast_cie_config_msgs" }
# ros-humble-agnocast-sample-interfaces = { path="agnocast/src/agnocast_sample_interfaces" }
# ros-humble-agnocast-e2e-test = { path="agnocast/src/agnocast_e2e_test" }
ros-humble-agnocastlib = { path="agnocast/src/agnocastlib" }- run
pixi lock
Note that pixi lock works fine if you comment the dev dependency ros-humble-agnocastlib.
Also, ros-humble-agnocastlib workspace dependencies are ros-humble-agnocast-cie-thread-configurator and ros-humble-agnocast-cie-config-msgs, which are built locally.
Issue description
No response
Expected behavior
pixi lock just work just fine?
Activity