question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--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 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jaracocommented, Mar 13, 2022

Looks like it’s included with 1.2.0a1 and later.

0reactions
AlexAurandcommented, Apr 6, 2022

@finswimmer Is there a tentative release date for poetry 1.2?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found