Skip to content

Don't persist pypi-prerelease-mode in pixi.lock if it's not used #5130

Closed

Description

@pavelzw

I usually have pixi projects that have no pypi whatsoever. I would expect that pixi does not do any connection to pypi (it's not available in some enterprise environments).
The pypi-prerelease-mode is disturbing me a bit since i don't use pypi at all in my pixi projects and i would appreciate if we only serialized that option if it is actually being used (or different than the default?).

❯ pixi init
✔ Created /private/var/folders/rz/q1r4tv0n6ll38q18fbk419mc0000gn/T/tmp.MD2XTP0mD6/pixi.toml
❯ pixi add python
✔ Added python >=3.14.2,<3.15
❯ cat pixi.lock | grep pypi -B 1
    options:
      pypi-prerelease-mode: if-necessary-or-explicit

Activity

  1. changed the title [-]Don't persist `pypi-prerelease-mode` if it's not used[/-] [+]Don't persist `pypi-prerelease-mode` in `pixi.lock` if it's not used[/+] on Dec 15, 2025
  2. baszalmstra commented on Dec 15, 2025

    @baszalmstra
    Contributor

    Makes sense to me!

  3. self-assigned this
    on Dec 18, 2025
  4. pavelzw commented on Apr 9, 2026

    @pavelzw
    CollaboratorAuthor

    this was not fixed

  5. reopened this on Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions