Skip to content

[0.68.1] Lockfile never up to date #6155

Closed

Description

@dhirschfeld

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

I'm observing the lockfile never being up to date. I'm only seeing this in one repo with lots of dependencies, but am not seeing it in another with simpler dependencies:

❯ pixi install
 WARN These conda-packages will be overridden by pypi: 
        requests
✔ The default environment has been installed.

❯ pixi install
✔ The default environment has been installed.

❯ pixi install --locked
Error:   × lock-file not up-to-date with the workspace

❯ pixi lock
✔ Updated lock-file

❯ pixi lock
✔ Updated lock-file

❯ pixi install --locked -v
 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 'synth' has changed: dependencies changed - added: [qdev-utils], removed: [qdev-utils]
 INFO pixi_core::lock_file::outdated: the pypi dependencies of environment 'default' for platform win-64 are out of date because metadata for local package 'synth' has changed: dependencies changed - added: [qdev-utils], removed: [qdev-utils]
 <snip>
 ...same for all envs...
<snip>
Error:   × lock-file not up-to-date with the workspace

This error seems to be to do with the qdev-utils dependency. If I remove that dependency, the error goes away.

Separately if I add the qdev-quant package as a dependency of my synth project I again observe the lock file being out of date, but with a different error

❯ pixi install
✔ The default environment has been installed.

❯ pixi install --locked -v
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform win-64 are out of date because 'synth' with specifiers '>=1.6.0' does not match the locked version '0a0.dev0' 
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-64 are out of date because 'synth' with specifiers '>=1.6.0' does not match the locked version '0a0.dev0' 
Error:   × lock-file not up-to-date with the workspace

❯ cat pixi.lock | rg synth
  name: synth
  - synth>=1.6.0

❯ cat pixi.lock | rg 0a0.dev0


❯ pixi tree -i synth

synth <unknown> 
└── qdev_quant 0.6.4 

The qdev-quant package does depend on synth and pin it to >=1.6.0. I have no idea where '0a0.dev0 comes from - as can be seen it's not in the lock file.

Activity

  1. added
    bug
    on May 19, 2026
  2. dhirschfeld commented on May 19, 2026

    @dhirschfeld
    ContributorAuthor

    Sorry there's nothing actionable there - I just wanted to flag this before bed, in case anyone else is seeing similar.

    I'll try and track it down further tomorrow today 😬

  3. dhirschfeld commented on May 19, 2026

    @dhirschfeld
    ContributorAuthor

    It's odd that I'm only seeing this in one repo. It does seem related to complex dependencies though.

  4. benmoss commented on May 19, 2026

    @benmoss
    Contributor

    Do you think this could be the same as #6136 ?

  5. dhirschfeld commented on May 19, 2026

    @dhirschfeld
    ContributorAuthor

    Sounds the same. I'll build the latest main today and test...

  6. dhirschfeld commented on May 20, 2026

    @dhirschfeld
    ContributorAuthor

    Unfortunately, after building from a8f4c72 I'm still seeing the lock file as out of date.

  7. dhirschfeld commented on May 20, 2026

    @dhirschfeld
    ContributorAuthor

    So, I think I've tracked down one of the errors. The error:

    are out of date because metadata for local package 'synth' has changed: dependencies changed - added: [qdev-utils], removed: [qdev-utils]
    

    where specifying qdev-utils results it it appearing to be added and removed coms from optional dependencies.

    The actual dependency is:

    dependencies = [
      "qdev-utils[db,databricks]",
    ]

    If I don't include optional dependencies, or even if I specify them separately like:

    dependencies = [
      "qdev-utils[db]",
      "qdev-utils[databricks]",
    ]

    ...then the error doesn't occur.

  8. benmoss commented on May 20, 2026

    @benmoss
    Contributor

    I'm not sure if we solved the qdev-quant issue you were describing here, feel free to reopen or start another issue if that ends up being a distinct bug

  9. dhirschfeld commented on May 21, 2026

    @dhirschfeld
    ContributorAuthor

    Thanks @benmoss - that's fixed the unordered optional dependencies problem!

  10. dhirschfeld commented on May 21, 2026

    @dhirschfeld
    ContributorAuthor

    I'm still seeing the does not match the locked version '0a0.dev0' error, but I'll open a new issue just for that to keep the conversation focused/clean.

  11. dhirschfeld commented on May 21, 2026

    @dhirschfeld
    ContributorAuthor

    I'm still seeing the does not match the locked version '0a0.dev0' error, but I'll open a new issue just for that to keep the conversation focused/clean.

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