fix: satisfy lock-file when feature-level index-url is set#6065
Merged
ruben-arts merged 2 commits intoMay 11, 2026
Merged
Conversation
…fix-dev#6060) A manifest PyPI requirement with no per-package `index` was treated as "the user wants the default PyPI index" during satisfiability. With a feature-level `pypi-options.index-url`, the lock-file records the custom URL on each package while the requirement carries no `index`, so `pixi install --locked` failed with `'<pkg>' requires index <default> but the lock-file has <url>`. Compare the locked package URL against the lock-file's environment- level `indexes:` (already verified to match the manifest by `verify_pypi_indexes`) instead of hard-coding default PyPI. Empty falls back to the default PyPI URL. Fixes prefix-dev#6060 https://claude.ai/code/session_01THyoQmYv9CuRfyPw3VVxTw
Contributor
Author
|
@ruben-arts THis is ready! |
ruben-arts
approved these changes
May 11, 2026
Contributor
ruben-arts
left a comment
There was a problem hiding this comment.
Can confirm this works! Thanks
|
Thanks for this. Would to be possible to release this soon, as it's a regression, which unfortunately falls just after the lock file format change? |
Member
|
Definitely planning to make a release tomorrow. Do you need it earlier than that? Sorry for the regression. |
|
Thanks for this. Not at all, I just pinned the pixi version in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A manifest PyPI requirement with no per-package
indexwas treated as "the user wants the default PyPI index" during satisfiability. With a feature-levelpypi-options.index-url, the lock-file records the custom URL on each package while the requirement carries noindex, sopixi install --lockedfailed with'<pkg>' requires index <default> but the lock-file has <url>.Compare the locked package URL against the lock-file's environment-level
indexes:(already verified to match the manifest byverify_pypi_indexes) instead of hard-coding default PyPI.Fixes #6060
How Has This Been Tested?
pypi.rs:test_pypi_feature_level_index_should_satisfy(reproduces [0.68.0] Unable to use--lockedwith a non-defaultindex-url#6060; also covers trailing-slash + unrelated-index negative case)test_pypi_extra_index_should_satisfy(package locked from anextra-index-urlsentry)tests/data/satisfiability/pypi-feature-level-index-url/AI Disclosure
Tools: Claude Code
Checklist: