Repository navigation
Description
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
First (local) machine
Creating symlink to the library
ln -s ../my_lib ./my_libpixi.toml file that reproduces my issue:
[workspace]
channels = ["conda-forge"]
name = "qqq"
platforms = ["linux-64"]
version = "0.1.0"
[dependencies]
python = "==3.10"
[pypi-dependencies]
my_lib = { path = "./my_lib/", editable = true }pixi info output:
System
------------
Pixi version: 0.59.0
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=6.6.87.2=0
: __glibc=2.36=0
: __cuda=12.7=0
: __archspec=1=skylake
Cache dir: /home/***/.cache/rattler/cache
Auth storage: /home/***/.rattler/credentials.json
Config locations: No config files found
Global
------------
Bin dir: /home/***/.pixi/bin
Environment dir: /home/***/.pixi/envs
Manifest dir: /home/***/.pixi/manifests/pixi-global.toml
Workspace
------------
Name: qqq
Version: 0.1.0
Manifest file: /home/***/***/qqq/pixi.toml
Last updated: 24-11-2025 14:32:26
Environments
------------
Environment: default
Features: default
Channels: conda-forge
Dependency count: 1
Dependencies: python
PyPI Dependencies: my_lib
Target platforms: linux-64
Prefix location: /home/***/***/qqq/.pixi/envs/default
Note that the symlink is resolved in the lock file:
pixi.lock
version: 6
environments:
default:
packages:
linux-64:
- pypi: ../my_lib
packages:
- pypi: ../my_lib
name: my_lib
Second (docker build) machine
WORKDIR /app
COPY ../my_lib my_lib
RUN pixi install --locked× lock-file not up-to-date with the workspace
Issue description
The problem is that the lock file contains resolved symlink for my_lib (link's TARGET where it points to - ../my_lib) and this lock file is unusable on another setup (machine), where TARGET might differ from the original setup. In my case the second setup is a docker build environment, where my_lib is not longer accessed through symlink, but copied directly in the project root (so ./my_lib in pixi.lock works, and ../my_lib doesn't).
#2036 May be related.
Expected behavior
I would expect pixi.lock to have paths without resolving the symlinks, so in my case it is ./my_lib.
The workaround for me is to replace paths in the lock file with a command in dockerfile, but if the issue is not related to docker, it might be not as straightforward as this.
Activity