-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pixi doesn't install specified commit of pypi git dependency #2456
Comments
Thank you for this great reproducer. It even works on my windows machine. We do need to look into this. It also doesn't work with an earlier version. |
I am running into a similar (likely related issue) with editable local installs. With Pixi version: 0.39.5, starting with the following pixi.toml:
Running
Now I want to use a local version of PyYaml (e.g. I am developing a new feature). I grab the code using
However, running
We can further confirm that the editable install is not working by making modifications in the local pyyaml code without having any effect on the environment. The lockfile also seems to point to the local code
but is being ignored. Removing The only thing that works is
Additional contextThis seems to be exclusively a problem with
and then switch to
), then everything works exactly as expected. |
@ppinchuk Thanks for the great report! I think I have a clue where this is going wrong. We have a plan to improve the git logic of pixi soon. This probably will also improve this example. |
Thanks!! |
No worries, thanks for continuing to look into it! |
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
This is with pixi 0.35.0.
Considering the following
pixi.toml
:If I run
pixi run check
, I get the expected output (only one line withorphan
).$ pixi run check ✨ Pixi task (check): grep orphan .pixi/envs/default/lib/python3.12/site-packages/sphinx_tags/__init__.py content.append(":orphan:")
I now replace the
sphinx-tags
version with a specific commit (the lineorphan: true
was added in this commit).$ rm -rf .pixi/ pixi.lock $ pixi run check ✨ Pixi task (check): grep orphan .pixi/envs/default/lib/python3.12/site-packages/sphinx_tags/__init__.py content.append(":orphan:")
The old version is still installed despite the proper version in
pixi.lock
:If I remove rattler cache, I get the proper version installed:
Issue description
I believe the issue is the same as what was reported in #2358, but closed by the author who couldn't reproduce.
There seems to be a cache issue preventing the specified git version to be installed, when another version was installed previously.
Expected behavior
Removing the cache shouldn't be needed to install a specific git version of a package.
The text was updated successfully, but these errors were encountered: