Skip to content

fix: dont check run-exports for source dependencies#5302

Merged
Hofer-Julian merged 3 commits intoprefix-dev:mainfrom
baszalmstra:dont-check-run-exports
Jan 15, 2026
Merged

fix: dont check run-exports for source dependencies#5302
Hofer-Julian merged 3 commits intoprefix-dev:mainfrom
baszalmstra:dont-check-run-exports

Conversation

@baszalmstra
Copy link
Contributor

Description

We were comparing the run-exports from the lock-file against the metadata from source dependencies. However, we are not storing run-exports in the lock-file for source dependencies so this check would always fail.

This PR is split in three commits:

  1. Adds a test that shows the problem locally.
  2. Fixes the test by not comparing run-exports
  3. Improves the satisfiability error with information about what actually changes between the metadata and the data in the lock-file.

Fixes #5226

How Has This Been Tested?

I checked the implementation against the reproducer in #5226. With this fix the lock-file is considered up-to-date. With pixi 0.63.1, the lockfile is always out of date with:

 INFO pixi_core::lock_file::outdated: the dependencies of environment 'h5py-default' for platform linux-aarch64 are out of date because the locked metadata of 'python' package changed (see trace logs for details)

AI Disclosure

I used Claude to generate the test.

Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

@Hofer-Julian Hofer-Julian merged commit dc5d0dc into prefix-dev:main Jan 15, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(build): lock file always invalidated by pixi-build-python git dep

2 participants