Skip to content

pixi install --locked is broken when using find-links #6265

Closed

Description

@noamgot

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

Commands I ran and their output:

❯ pixi install --locked -v
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-64 are out of date because 'torch-spline-conv' requires index https://pypi.org/simple, https://pypi.org/simple but the lock file has https://data.pyg.org/whl/torch-2.8.0+cpu.html
Error:   × lock file not up-to-date with the workspace

pixi.toml/pyproject.toml file that reproduces my issue:

[workspace]
channels = ["conda-forge"]
name = "pypi-indices"
platforms = ["linux-64"]
version = "0.1.0"

[pypi-options]
extra-index-urls = ["https://pypi.org/simple"]
find-links = [{ url = "https://data.pyg.org/whl/torch-2.8.0+cpu.html" }]

[dependencies]
python = "3.10.*"

[pypi-dependencies]
lightning = ">=2.6,<3"
torch = { version = "==2.8.0", index = "https://download.pytorch.org/whl/cpu" }
torch-cluster = "*"
torch-geometric = "*"
torch-scatter = "*"
torch-sparse = "*"
torch-spline-conv = "*"
torchvision = { version = "==0.23.0", index = "https://download.pytorch.org/whl/cpu" }

pixi info output:

System
------------
       Pixi version: 0.70.0
        TLS backend: rustls
           Platform: linux-64
   Virtual packages: __unix=0=0
                   : __linux=5.15.0=0
                   : __glibc=2.35=0
                   : __archspec=1=cascadelake
          Cache dir: $PIXI_HOME/.cache/rattler/cache
       Auth storage: $HOME/.rattler/credentials.json
   Config locations: $PIXI_HOME/.pixi/config.toml

Global
------------
            Bin dir: $PIXI_HOME/.pixi/bin
    Environment dir: $PIXI_HOME/.pixi/envs
       Manifest dir: $PIXI_HOME/.pixi/manifests/pixi-global.toml

Workspace
------------
               Name: pypi-indices
            Version: 0.1.0
      Manifest file: $HOME/work/pixi_games/pypi-indices/pixi.toml
       Last updated: 03-06-2026 12:33:44

Environments
------------
        Environment: default
           Features: default
           Channels: conda-forge
   Dependency count: 1
       Dependencies: python
  PyPI Dependencies: lightning, torch, torch-cluster, torch-geometric, torch-scatter, torch-sparse, torch-spline-conv, torchvision
   Target platforms: linux-64
    Prefix location: $PIXI_HOME/.cache/rattler/cache/envs/pypi-indices-8025988392485597504/envs/default



Other files (e.g. script files, source files, etc.):

Issue description

I have pixi 0.67.2 binary named pixi0672; with this binary I can lock and install with --locked:

pixi0672 lock && pixi0672 install --locked
# ...
✔ The default environment has been installed in '...'.

however, on the latest pixi (0.70.0), I can't:

pixi lock && pixi install --locked
# ...
Error:   × lock file not up-to-date with the workspace

Running with -v I see this log:

❯ pixi install --locked -v
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-64 are out of date because 'torch-spline-conv' requires index https://pypi.org/simple, https://pypi.org/simple but the lock file has https://data.pyg.org/whl/torch-2.8.0+cpu.html
Error:   × lock file not up-to-date with the workspace

I suspect that it has something to do with the usage of find-links (not 100% sure though)

Expected behavior

pixi install --locked should work (after locking)

Activity

  1. added
    bug
    on Jun 3, 2026
  2. noamgot commented on Jun 3, 2026

    @noamgot
    ContributorAuthor

    adding explicit indices seems to solve this:

    [pypi-dependencies]
    lightning = ">=2.6,<3"
    torch = { version = "==2.8.0", index = "https://download.pytorch.org/whl/cpu" }
    torch-cluster = { version = "*", index = "https://data.pyg.org/whl/torch-2.8.0+cpu.html" }
    torch-geometric = "*"
    torch-scatter = { version = "*", index = "https://data.pyg.org/whl/torch-2.8.0+cpu.html" }
    torch-sparse = { version = "*", index = "https://data.pyg.org/whl/torch-2.8.0+cpu.html" }
    torch-spline-conv = { version = "*", index = "https://data.pyg.org/whl/torch-2.8.0+cpu.html" }
    torchvision = { version = "==0.23.0", index = "https://download.pytorch.org/whl/cpu" }

    however, I prefer to preserve the previous behavior

  3. noamgot commented on Jun 7, 2026

    @noamgot
    ContributorAuthor

    @baszalmstra thanks for this fix!
    Are you going to publish a patch version with this fix anytime soon...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions