`--remove-untracked` does not remove old versions of root package
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name:
macOS Catalina 10.15.7 (19H1715)
-
Poetry version:
Poetry version 1.1.13
-
Link of a Gist with the contents of your pyproject.toml file: https://github.com/kkirsche/poetry-remove-untracked
- This is a full repo with a
before
andafter
tag with reproduction steps in theREADME.md
- This is a full repo with a
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.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How do I remove local (untracked) files from the current Git ...
Remove untracked directories in addition to untracked files. If an untracked directory is managed by a different Git repository, it is not removed...
Read more >How to Remove Local Untracked Files in Git Working Directory
The untracked file is deleted using the git clean command; The untracked file is saved using the git stash command; The untracked file...
Read more >How to Remove Untracked Files in Git - Linode
Learn how to remove untracked files in git using the git clean command.
Read more >after removing packages, files left behind untracked by rpmdb
This was caused by installing both arches, hwloc.ppc64 and hwloc.ppc, then removing them together. Version-Release number of selected component (if applicable): ...
Read more >Removing Untracked Files with Git - Career Karma
You can use the git clean command to remove untracked files. The -fd command removes untracked directories and the git clean -fx command ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks like it’s included with 1.2.0a1 and later.
@finswimmer Is there a tentative release date for poetry 1.2?