You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pixi-build used dependencies (i.e. backend + host and build envs) should be persisted in pixi.lock #5161
I think it would be nice for full reproducibility if we were able to pin all of the used things to build an environment in pixi.lock as well. Maybe optionally? Otherwise you might run into the situation in the future that a package is not buildable anymore or produced different results than before.
This is for sure the goal! We've still working on the idea on how to make this without exploding the lockfile. We might initial implement this and accept these mega lockfiles...
One idea that I have is that it would be nice to default to having a solve-group with the environment it's installed in. So that it reuses as much as possible.
I was thinking about at least storing the date of the newest package in the build/host environments in the lockfile and using that with excludenewer to enforce at least some guarantees. Although that will be strictly less reproducible it will probably be much much better than nothing at all without the lockfile blowing up.
This just fell on our feet: hatchling 1.28.0 now doesn't ship editables which breaks pip install -e (fix incoming in conda-forge/hatchling-feedstock#67).
Now, pixi install fails without us having changed the lockfile.
[package]
name = "project"# replaced in CIversion = "0.0.0"
[package.build.backend]
name = "pixi-build-python"version = "*"
[package.host-dependencies]
python = ">=3.12"hatchling = "*"
[package.run-dependencies]
python = ">=3.12"pydantic-ai = ">=1.32.0,<2"pydantic = ">=2.12.3,<3"
With #5607 merged, we now always lock the build/host dependencies. This should solve the above issue.
However, we still don't lock the used build backend. The reason is that this is also tied to the pixi version you use. I'll leave that for future me to figure out ..... In the meantime, I will close this issue.
Activity
ruben-arts commentedon Dec 18, 2025
This is for sure the goal! We've still working on the idea on how to make this without exploding the lockfile. We might initial implement this and accept these mega lockfiles...
One idea that I have is that it would be nice to default to having a
solve-groupwith the environment it's installed in. So that it reuses as much as possible.baszalmstra commentedon Dec 18, 2025
I was thinking about at least storing the date of the newest package in the build/host environments in the lockfile and using that with excludenewer to enforce at least some guarantees. Although that will be strictly less reproducible it will probably be much much better than nothing at all without the lockfile blowing up.
pavelzw commentedon Jan 4, 2026
This just fell on our feet:
hatchling 1.28.0now doesn't shipeditableswhich breakspip install -e(fix incoming in conda-forge/hatchling-feedstock#67).Now,
pixi installfails without us having changed the lockfile.baszalmstra commentedon May 1, 2026
With #5607 merged, we now always lock the build/host dependencies. This should solve the above issue.
However, we still don't lock the used build backend. The reason is that this is also tied to the pixi version you use. I'll leave that for future me to figure out ..... In the meantime, I will close this issue.