-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Equivalent of pip --force-reinstall #3931
Comments
I don't think this is required. |
I'm finding that that's not the case as far as my usage goes. My steps are:
So this suggests to me that unless the version number changes, the root project is not reinstalled. Upgrading my patch version to force reinstalls during dev is not a terrible state to be in, but it does add an extra step (and an extra source of error if I forget to drop the patch version counter back down before deploying) to my process. |
@zhzhang Seems you are instaling a local path dependency. My statement was regarding the root project, ie. the current project managed by poetry. In your case, you can install the local library path as an editable dependency, ie. |
Nice! Thanks for the pointer! Only suggestion is to maybe add a flag for |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
Does poetry have (or have a roadmap for) the
--force-reinstall
feature in pip?My use case is iterating on a library locally, and reinstalling it frequently to test my changes in a separate poetry project that contains a client application that's using the library I'm developing.
The current process of
remove
andinstall
removes and reinstalls the dependencies, which takes a long time. It would be better to have a--force-reinstall
flag like in pip that just installs the contents of the library without touching the dependencies.The text was updated successfully, but these errors were encountered: