Repository navigation
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
Commands I ran after downloading and unzipping attached pixi project:
pixi build
unzip hello*.conda
tar -xvf info*.tar.zst
cat info/index.jsonThe output:
{
"arch": "arm64",
"build": "h60d57d3_0",
"build_number": 0,
"depends": [],
"name": "hello_world",
"platform": "osx",
"subdir": "osx-arm64",
"timestamp": 1779142398616,
"version": "0.1.0"
}
pixi.toml/pyproject.toml file that reproduces my issue:
[workspace]
channels = [
"https://prefix.dev/conda-forge",
]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
preview = ["pixi-build"]
[package]
name = "Hello_World"
version = "0.1.0"
[package.build]
backend = { name = "pixi-build-cmake", version = "*" }
[package.host-dependencies]
hdf5 = "*pixi info output:
System
------------
Pixi version: 0.68.1
TLS backend: rustls
Platform: osx-arm64
Virtual packages: __unix=0=0
: __osx=26.3.1=0
: __archspec=1=m1
Cache dir: /Users/gphlipot/Library/Caches/rattler/cache
Auth storage: /Users/gphlipot/.rattler/credentials.json
Config locations: No config files found
Global
------------
Bin dir: /Users/gphlipot/.pixi/bin
Environment dir: /Users/gphlipot/.pixi/envs
Manifest dir: /Users/gphlipot/.pixi/manifests/pixi-global.toml
Workspace
------------
Name: Hello_World
Manifest file: /Users/gphlipot/Documents/Workspaces/pixi_build/pixi.toml
Environments
------------
Environment: default
Features: default
Channels: https://prefix.dev/conda-forge
Dependency count: 0
Target platforms: osx-arm64, osx-64, linux-64, win-64
Prefix location: /Users/gphlipot/Documents/Workspaces/pixi_build/.pixi/envs/default
Other files (e.g. script files, source files, etc.):
pixi cmake project that uses hdf5: pixi_build.zip
Issue description
When adding a host-dependency to a package and building the package with pixi build, the resulting package does not depend on the run-exports of the host-dependencies..
Expected behavior
It is expected that the "depends" section in the info/index.json file should list hdf5 (and libcxx) like:
"depends": [
"libcxx >=22",
"hdf5 >=2.1.0,<3.0a0"
]
This behavior started in version 0.68.0. When running these commands in 0.67.2, the "depends" section correctly lists out libcxx and hdf5.
Activity