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
--remove-untracked does not remove old versions of root package #5204
This is a full repo with a before and after tag with reproduction steps in the README.md
Issue
I expect the --remove-untracked flag to remove versions of the root package that no longer match the pyproject.toml file.
By not removing these files, if the project uses importlib.metadata.version, this will return an incorrect version number even though the pip installation is aware that a later version is the newest.
I encountered this exact issue earlier this week. Not clear if the described effect on importlib_metadata (or importlib.metadata, depending on the Python version) should also be considered a bug in that library - but regardless, making --remove--untracked behave as requested would make its results more deterministic, which is a Good Thing.
I encountered this exact issue earlier this week. Not clear if the described effect on importlib_metadata (or importlib.metadata, depending on the Python version) should also be considered a bug in that library - but regardless, making --remove--untracked behave as requested would make its results more deterministic, which is a Good Thing.
Activity
jclerman commentedon Feb 16, 2022
I encountered this exact issue earlier this week. Not clear if the described effect on
importlib_metadata(orimportlib.metadata, depending on the Python version) should also be considered a bug in that library - but regardless, making--remove--untrackedbehave as requested would make its results more deterministic, which is a Good Thing.kkirsche commentedon Feb 17, 2022
I’ve filed https://bugs.python.org/issue46774 To understand if they consider this a bug in the upstream Python language.
finswimmer commentedon Feb 22, 2022
Hello,
this is a duplicate of #3289, which is already solved by #3900
fin swimmer
kkirsche commentedon Feb 22, 2022
When will this be in the released poetry version if it was already solved?
jaraco commentedon Mar 13, 2022
Looks like it's included with 1.2.0a1 and later.
AlexAurand commentedon Mar 31, 2022
@jaraco Is there a tentative release date for poetry 1.2?
jaraco commentedon Mar 31, 2022
I don't maintain this project; I hope someone else knows.
AlexAurand commentedon Apr 6, 2022
@finswimmer Is there a tentative release date for poetry 1.2?
github-actions commentedon Mar 2, 2024
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.