Skip to content

Pixi lockfile v7 bump #5248

Closed
Closed

Description

@ruben-arts

Bumping the version means that from the moment one user updates the lockfile to the newest version, all other users need to update the version of Pixi itself to use the new lockfile. This includes CI.

Bumping a lockfile version always comes with friction for our users, so we don't take these lightly.
We have a set of changes lined up that require a lockfile update to avoid unexpected behavior for the users.

Removing editable from the lockfile.

This has been implemented in: #5106
This allows users to mix editable false and true in one solve-group

Removing input hashes from the lockfile.

The conda version is implemented in: #5011
The PyPI version is being implemented in: #5174
This will avoid lockfile updates when the source code changes, while it doesn't need changes of the dependencies in the environment.
e.g. Pixi would previously need a lockfile update when you add a comment to your pyproject.toml.

Supporting relative paths to pypi source dependencies.

This has been implemented in rattler_lock: conda/rattler#1760
This solves the problem that there would be absolute paths in the lockfile which are not protable to other machines.

Disambiguate based on variants instead of name, version, subdir

Moving forward we want to disambiguate source packages through their variants. In this bump, we should at the very least ensure that we can disambiguate based on variants but maybe not yet remove the "old" fields.

Activity

  1. baszalmstra commented on Jan 13, 2026

    @baszalmstra
    Contributor

    While we are at it, it would also be nice if we refactor the platforms in such a way that we could support this:

    We could achieve that by adding a seperate platforms table, listing all the platforms and their virtual packages, or by replacing the environment dictionaries with arrays of objects.

  2. baszalmstra commented on Jan 13, 2026

    @baszalmstra
    Contributor

    We also ran into another issue, where we are not able to disambiguate two packages properly (see: #5256). We want to change the way we disambiguate packages in the lock-file. Instead of disambiguating based on the fields of a record, we compute a "lockfilehash" which is a short hash which is then use to disambiguate.

    We also want to remove the buildstring, and version from the lock-file for conda source packages. During build and solve, we can compute this information from a combination of the source-code, the build-backend, the package name, and the variants. So there is no need to explicitly store this in the lock file.

  3. baszalmstra commented on Jan 13, 2026

    @baszalmstra
    Contributor

    We should also add a field to the lock-file that indicates when the host and build environments were solved so we can relatively reliably recreate these environments later. This is required for better reproducibility.

  4. uwu-420 commented on Feb 11, 2026

    @uwu-420

    Hi! Are there any updates on how this is going? I was especially looking forward to #5174 which seems to be blocked on this? My team is suffering quite a lot of lockfile churn and IIUC this would help quite a lot. It's not really urgent, but would be quite a good change :)

  5. ruben-arts commented on Feb 11, 2026

    @ruben-arts
    ContributorAuthor

    Yes, it's a big refactor with lots of changes in different places. The main pr you can follow to see the progression in Pixi as of right now is #5483 managed by @hunger

  6. hunger commented on Apr 13, 2026

    @hunger
    Contributor

    conda/rattler#2026is the PR for the rattler side of things. I'd love to land this very soon now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions