Skip to content

feat: add --from-lockfile to pixi workspace export#5989

Open
baszalmstra wants to merge 2 commits intoprefix-dev:mainfrom
baszalmstra:claude/pixi-issue-5825-HGdAE
Open

feat: add --from-lockfile to pixi workspace export#5989
baszalmstra wants to merge 2 commits intoprefix-dev:mainfrom
baszalmstra:claude/pixi-issue-5825-HGdAE

Conversation

@baszalmstra
Copy link
Copy Markdown
Contributor

Add a --from-lockfile flag to pixi workspace export conda-environment that renders a frozen environment.yaml using the package versions resolved in the lock file instead of the manifest specs. Conda packages are pinned as name ==version build, registry PyPI packages as name==version, and git/file/path PyPI sources keep their direct reference URLs.

Closes #5825

How Has This Been Tested?

CI

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude Code Web Opus 4.7 High

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

claude added 2 commits May 1, 2026 10:44
Add a `--from-lockfile` flag to `pixi workspace export conda-environment`
that renders a frozen environment.yaml using the package versions resolved
in the lock file instead of the manifest specs. Conda packages are pinned
as `name ==version build`, registry PyPI packages as `name==version`, and
git/file/path PyPI sources keep their direct reference URLs.

Closes prefix-dev#5825

https://claude.ai/code/session_011qEmEGrK3p1pmeVAwydSc7
- Replace `pixi install` with `pixi lock` in error help text since the
  user just wants the lock file refreshed, not the env materialised.
- Regenerate the autogenerated CLI reference page to surface the new
  --from-lockfile flag.
- Mention the new flag in the conda switching guide.

https://claude.ai/code/session_011qEmEGrK3p1pmeVAwydSc7
@baszalmstra baszalmstra requested a review from ruben-arts May 1, 2026 12:27
Copy link
Copy Markdown
Contributor

@hunger hunger left a comment

Choose a reason for hiding this comment

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

LGTM

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.

feat(workspace export): get conda-environment from the lock file

3 participants