Skip to content

[0.68.1] Lockfile out of date with circular dependencies #6167

Closed

Description

@dhirschfeld

Problem description

I'm observing my synth package never being locked:

❯ pixi-dev lock -v
 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' 
 INFO pixi_core::lock_file::update: resolved conda environment for environment 'default' 'linux-64' in 1s 180ms 556us 659ns
 INFO resolve_pypi{group=default platform=linux-64}: pixi_core::lock_file::resolve::pypi: there are no python packages installed by conda
 INFO resolve_pypi{group=default platform=linux-64}: pixi_core::environment::conda_metadata: No update needed for the prefix file.
 INFO pixi_core::lock_file::update: resolved pypi packages for environment 'default' 'linux-64' in 727ms 186us 551ns
✔ Updated lock-file

❯ pixi-dev lock -v
 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' 
 INFO pixi_core::lock_file::update: resolved conda environment for environment 'default' 'linux-64' in 806ms 879us 163ns
 INFO resolve_pypi{group=default platform=linux-64}: pixi_core::lock_file::resolve::pypi: there are no python packages installed by conda
 INFO pixi_core::lock_file::update: resolved pypi packages for environment 'default' 'linux-64' in 257ms 600us 87ns
✔ Updated lock-file

I suspect the problem relates to circular dependencies. It only happens when I depend on the qdev-quant package:

  • synth depends on qdev-quant
  • qdev-quant depends on synth>=1.6.0

synth is an editable install - it's the package being developed. It's at version 1.9.0.post7+sha so it satisfies the constraint in the qdev-quant package but pixi lock -v gives the below error message:

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' 

As the package being developed, (AFAICS) the only mention of synth in the lockfile is as a dependency of qdev-quant

- pypi: .
  name: synth
  requires_dist:
  - qdev-quant
  - qdev-utils[databricks,db]
  - vcs-version>=1.3.0 ; extra == 'build'
  - hatch-vcs>=0.4.0 ; extra == 'build'
  - hatchling>=1.27.0 ; extra == 'build'
  requires_python: '>=3.10'
- pypi: https://dl.cloudsmith.io/org/repo/python/qdev_quant-0.6.4-py3-none-any.whl
  name: qdev-quant
  version: 0.6.4
  sha256: 7bbf4b327832115f4f417651140cec18bb906fb6516537087f664310c4230d2f
  index: https://dl.cloudsmith.io/org/repo/python/simple/
  requires_dist:
  - databricks-sql-connector>=4.0.3
  - databricks-sqlalchemy>=2.0.6
  - exceptiongroup>=1.3.0
  - bloomberg>=1.5.3
  - qdev-utils[config,db,polars]>=0.47.2.0
  - synth>=1.6.0
  - frozendict>=2.4
  - narwhals>=1.34.1
<snip>
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions