You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pixi wrongly thinks lockfile is outdated due to symlink #2036
When solving my environment, pixi always thinks that the lockfile is out of date:
INFO pixi::lock_file::outdated: the dependencies of environment 'default'for platform linux-64 are out of date because the editable package path 'mypackage', lock does not equal spec path '/data/home/kcajf/code/myrepo/./other-repo-symlink/src/python/mypackage' == '/data/home/kcajf/code/other-repo/src/python/mypackage'
On my system, /data/home/kcajf/code/myrepo/./other-repo-symlink is a symlink to /data/home/kcajf/code/other-repo. These two paths are the same, but pixi doesn't think they are.
Expected behavior
Pixi should resolve the real path of these two (or keep them both unresolved), and identify that they are the same.
If, in my pixi.toml I hardcode the absolute path, pixi install no longer re-solves the lock file. (I can't hardcode the path though, because it needs to be a symlink for portability between internal users / systems).
We get the same (similar?) error on our repo (Deltares/Ribasim-NL#144), where we have a relative path to another checked out repository:
INFO pixi::lock_file::outdated: the dependencies of environment 'dev' for platform linux-64 are out of date because the editable package path 'ribasim', lock does not equal spec path '/home/runner/work/Ribasim-NL/Ribasim-NL/Ribasim-NL/../Ribasim/python/ribasim' == '/home/runner/work/Ribasim-NL/Ribasim-NL/Ribasim/python/ribasim'
Activity
kcajf commentedon Sep 11, 2024
If, in my
pixi.tomlI hardcode the absolute path,pixi installno longer re-solves the lock file. (I can't hardcode the path though, because it needs to be a symlink for portability between internal users / systems).nichtmacho commentedon Sep 11, 2024
hey @kcajf ! thanks for reporting this (even it is unfortunately that it doesn't work for you)
I will take a look and comeback with an answer for this
nichtmacho commentedon Sep 11, 2024
how do you create the symlink? is it a soft or hard one?
kcajf commentedon Sep 12, 2024
It's a soft/symbolic link.
evetion commentedon Sep 12, 2024
We get the same (similar?) error on our repo (Deltares/Ribasim-NL#144), where we have a relative path to another checked out repository:
INFO pixi::lock_file::outdated: the dependencies of environment 'dev' for platform linux-64 are out of date because the editable package path 'ribasim', lock does not equal spec path '/home/runner/work/Ribasim-NL/Ribasim-NL/Ribasim-NL/../Ribasim/python/ribasim' == '/home/runner/work/Ribasim-NL/Ribasim-NL/Ribasim/python/ribasim'