Skip to content

Dependencies with SSH URLs are broken with locked install #6259

Closed

Description

@alexis-aquanty

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 init
✔ Created /home/user/pixitest/pixi.toml
$ pixi add python
✔ Added python >=3.14.5,<3.15
$ pixi add --pypi --git ssh://[email protected]/pallets/flask flask
✔ Added flask
Added these as pypi-dependencies.
$ pixi install --locked --verbose
 INFO pixi_core::lock_file::outdated: the dependencies of environment 'default' for platform linux-64 are out of date because 'flask' has mismatching git url: 'ssh://github.com/pallets/flask != ssh://[email protected]/pallets/flask'
Error:   × lock file not up-to-date with the workspace

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

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

[tasks]

[dependencies]
python = ">=3.14.5,<3.15"

[pypi-dependencies]
flask = { git = "ssh://[email protected]/pallets/flask" }

pixi info output:

System
------------
       Pixi version: 0.70.0
        TLS backend: rustls
           Platform: linux-64
   Virtual packages: __unix=0=0
                   : __linux=6.1.0=0
                   : __glibc=2.36=0
                   : __archspec=1=skylake
          Cache dir: /home/user/.cache/rattler/cache
       Auth storage: /home/user/.rattler/credentials.json
   Config locations: No config files found

Global
------------
            Bin dir: /home/user/.pixi/bin
    Environment dir: /home/user/.pixi/envs
       Manifest dir: /home/user/.pixi/manifests/pixi-global.toml

Workspace
------------
               Name: pixitest
            Version: 0.1.0
      Manifest file: /home/user/pixitest/pixi.toml
       Last updated: 02-06-2026 12:05:06

Environments
------------
        Environment: default
           Features: default
           Channels: conda-forge
   Dependency count: 1
       Dependencies: python
  PyPI Dependencies: flask
   Target platforms: linux-64
    Prefix location: /home/user/pixitest/.pixi/envs/default

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

Issue description

Appears to be broken since v0.69.0. Possibly related to #6185.

Expected behavior

Projects with dependencies that have SSH URLs should not throw an error when attempting to run pixi install --locked.

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