python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
30.29k stars 2.23k forks source link

Updating develop attribute in path dependency forces to recreate the virtualenv to take effect #7088

Open slequeux opened 1 year ago

slequeux commented 1 year ago

Issue

I have 2 poetry projects, one depending on another, using a path dependency.

First I did not included the develop = true file and was facing the issue that it was difficult to work on a feature that requires modifications on these 2 projects as modification on the dependency was not replicated to my virtualenv.

I updated my dependency with the develop = true part and ran a poetry update. This had no effect. I had to completely delete the virtualenv and recreate it to have an effect.

Steps to reproduce:

Here I would expect to see changes in the lib from the other project. I can't see them. Once the virtual env has completely been recreated, then any change in the lib can be seen in the other project.

My guess here is that in one mode (develop = false), the module is installed in the virtualenv and not in the other mode (develop = true), but changing mode do not remove the module from the virtualenv as it should do.

dimbleby commented 1 year ago

Poetry version: 1.1.13

please try again with recent poetry

dimbleby commented 1 year ago

as reported against 1.1.13 this duplicates #3085 and #4884 - which were closed on the grounds that #6843 resolved them

however I don't think that #6843 actually did resolve this, so I guess this can stay open and it's all good. (Good from a tracking point of view I mean; of course a bug is still a bug.)

Samyak2 commented 11 months ago

I'm able to reproduce this on v1.5.1

dkbarn commented 5 months ago

Just ran into this on v1.7.1

My workflow was: