Skip to content

Pixi wrongly thinks lockfile is outdated due to symlink #2036

Closed

Description

@kcajf

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

Install a pypi editable package through a symlink:

pixi.toml:

mypackage = { path = "./other-repo-symlink/src/python/mypackage ", editable = true }

Issue description

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.

Activity

  1. added
    bug
    on Sep 11, 2024
  2. kcajf commented on Sep 11, 2024

    @kcajf
    Author

    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).

  3. nichtmacho commented on Sep 11, 2024

    @nichtmacho
    Contributor

    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

  4. self-assigned this
    on Sep 11, 2024
  5. nichtmacho commented on Sep 11, 2024

    @nichtmacho
    Contributor

    how do you create the symlink? is it a soft or hard one?

  6. kcajf commented on Sep 12, 2024

    @kcajf
    Author

    It's a soft/symbolic link.

  7. evetion commented on Sep 12, 2024

    @evetion

    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'

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions