Skip to content

pixi install --locked reports lockfile out of date for an up-to-date workspace #6136

Closed

Description

@mwouts

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

Steps to reproduce

  1. Clone my ITables project on that commit: mwouts/itables@0144cce
  2. Run pixi lock (no change)
  3. Run pixi install --locked

Why this is a problem

In the same project I use the pixi action, which uses locked by default. To make the CI pass I've had to set locked: false and frozen: true.

Issue description

Thank you for Pixi, which is a pleasure to use !

I have noticed a problem with the lock file so I though it would be helpful to report it.

On pixi 0.68.1, pixi install --locked fails with:

Error:   × lock-file not up-to-date with the workspace

even after running pixi lock, and even though the lockfile is already committed and unchanged.

Verbose output shows Pixi considers the workspace out of date because the editable local package metadata changed:

INFO pixi_core::lock_file::outdated: the pypi dependencies of environment 'default' for platform linux-64 are out of date because metadata for local package 'itables' has changed: dependencies changed - added: [itables, itables, itables, ...], removed: []

The workspace uses a local editable PyPI dependency:

[tool.pixi.pypi-dependencies]
itables = { path = ".", editable = true, extras = ["dev"] }

Environment

  • Pixi: 0.68.1
  • OS: Linux
  • Manifest: pyproject.toml from my ITables project on that commit: mwouts/itables@0144cce

Steps to reproduce

  1. Clone the repository.
  2. Run pixi lock (no change)
  3. Run pixi install --locked

Why this is a problem

In the same project I use the pixi action, which uses locked by default. To make the CI pass I've had to set locked: false and frozen: true.

Expected behavior

Running pixi lock followed by pixi install --locked should always pass

Activity

  1. added
    bug
    on May 16, 2026
  2. baszalmstra commented on May 16, 2026

    @baszalmstra
    Contributor

    would you be able to test with pixi from main? Chances are that this is fixed.

  3. mwouts commented on May 16, 2026

    @mwouts
    Author

    Do you mean installing with the cargo command? Like this?

    $ cargo install --locked --git https://github.com/prefix-dev/pixi.git pixi
        Updating git repository `https://github.com/prefix-dev/pixi.git`
    error: could not find `pixi` in https://github.com/prefix-dev/pixi.git with version `*`
    $ cargo --version
    cargo 1.75.0
    
  4. puneetdixit200 commented on May 16, 2026

    @puneetdixit200

    I’d like to work on this. I can reproduce pixi install --locked reporting an up-to-date lockfile as stale, add a regression fixture, and trace the lockfile comparison path causing the false mismatch. Please assign this to me.

  5. benmoss commented on May 18, 2026

    @benmoss
    Contributor

    I reproduced this with @mwouts 's repo at e440c46081766e85439a2806541df824ec431384 and pixi at f152a8e and am still seeing the same behavior

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions