Skip to content

bug(build): pixi-build-cmake dep sets incorrect source dir with relative source.path #6720

Description

@lucascolley

Here is the gist of the problem:

# packages/tests/pixi.toml
[package]
build = {
  backend.name = "pixi-build-cmake",
  source.path = "../..",
}
# pixi.toml
[dependencies]
xsf.path = "packages/tests"

Running pixi install in the root workspace yields the following build error:

CMake Error: The source directory "$PIXI_WORKSPACE_ROOT/packages/tests" does not appear to contain CMakeLists.txt.

The source directory is incorrectly set, it should be $PIXI_WORKSPACE_ROOT/packages/tests/../...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions