Skip to content

refactor: lockfile-v7 - #5607

Merged
baszalmstra merged 10 commits into
mainfrom
feature/lockfile-v7
May 1, 2026
Merged

baszalmstra merged 10 commits into
mainfrom
feature/lockfile-v7

Conversation

@baszalmstra

@baszalmstra baszalmstra commented Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch 4 times, most recently from 6471a50 to 39e98b5 Compare March 5, 2026 14:20
@baszalmstra baszalmstra changed the title wip: feature lockfile-v7 refactor: lockfile-v7 Mar 5, 2026
@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch 5 times, most recently from f352b94 to 63e87d8 Compare March 6, 2026 15:09
@baszalmstra baszalmstra mentioned this pull request Mar 6, 2026
5 tasks done
@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch 9 times, most recently from 69f2c3e to 0fb3a83 Compare March 13, 2026 11:08
@ruben-arts

This comment was marked as resolved.

@ruben-arts

This comment was marked as resolved.

@baszalmstra baszalmstra mentioned this pull request Mar 17, 2026
8 tasks
@uwu-420

uwu-420 commented Mar 20, 2026

Copy link
Copy Markdown

Just built pixi from this branch and checked again, the bug with relative paths for local PyPI dependencies not working still exists here, see #5483 (comment) If this is fixed, I can test on my monorepo and provide more feedback :)

@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch 3 times, most recently from 5aac6f9 to 86e0ad6 Compare March 20, 2026 10:55
@hunger

hunger commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

@uwu-420: I think I fixed the relative pypi paths again in a PR I will push as soon as I have rebased it on top of the new lockfile-v7 branch rebase @baszalmstra is currently doing :-)

@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch 2 times, most recently from 82297af to 3e01268 Compare May 1, 2026 10:17
Co-authored-by: Ruben Arts <ruben.arts@hotmail.com>
@baszalmstra
baszalmstra force-pushed the feature/lockfile-v7 branch from 3e01268 to b490d4a Compare May 1, 2026 10:29
@baszalmstra
baszalmstra marked this pull request as ready for review May 1, 2026 11:24
Now that the lockfile-v7 work is merged on conda/rattler and released,
drop the git-branch [patch.crates-io] overrides and bump rattler crates
to the new published versions (rattler 0.41, rattler_conda_types 0.46,
rattler_lock 0.29, etc.).

Switches the rattler-build patch to track main branch since rattler-build
still hasn't cut a release that targets the new rattler crates.
@baszalmstra
baszalmstra merged commit 212be45 into main May 1, 2026
75 of 77 checks passed
@baszalmstra
baszalmstra deleted the feature/lockfile-v7 branch May 1, 2026 13:16
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 1, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 1, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 1, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 6, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 6, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
baszalmstra pushed a commit to baszalmstra/pixi that referenced this pull request May 6, 2026
The lockfile-v7 refactor (prefix-dev#5607) introduced `read_local_package_metadata`
which fell back to `get_or_build_wheel_metadata` when uv's static
`requires_dist` declined. That fallback needs the host conda prefix to
have Python, but cross-platform satisfiability runs on platforms that
may not be in the lock at all. The resulting `PythonMissingError`
panicked out through `LazyBuildDispatch::interpreter` past this path's
missing `catch_unwind`, aborting `pixi run` / `pixi reinstall` on
hosts whose platform was missing from the lock (e.g. macOS arm64
against a linux-64-only lock).

Restrict the function to uv's static path. `Ok(Some)` feeds drift
detection; `Ok(None)` (uv's "static doesn't apply" classification)
trusts the lock; `Err` surfaces as
`PlatformUnsat::FailedToReadLocalMetadata` to force a re-solve.

Verified for uv 0.9.5 that `database.requires_dist` itself does not
invoke the interpreter.

Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>

https://claude.ai/code/session_018Wo78WYzQZBRWQQ3zNSsE4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment