Skip to content
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

breaking change: invert --remove-untracked to --keep-untracked #2370

Closed
seansfkelley opened this issue May 1, 2020 · 4 comments
Closed

breaking change: invert --remove-untracked to --keep-untracked #2370

seansfkelley opened this issue May 1, 2020 · 4 comments
Labels
kind/feature Feature requests/implementations

Comments

@seansfkelley
Copy link

seansfkelley commented May 1, 2020

Now that #2172 is merged to address #648 (yay!), I'd like to propose a breaking change to switch the default from keeping untracked files to removing them.

It seems like the main reason that --remove-untracked was chosen over --keep-untracked was for backwards compatibility concerns, per #648 (comment). #648 (comment) and other comments on that issue generally lean towards remove-by-default as the preferred behavior.

I filed this as a tracking issue under the assumption that it'll have to wait around for v2.

See also the philosophically-related #3248.

@seansfkelley seansfkelley added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels May 1, 2020
@PetterS
Copy link
Contributor

PetterS commented May 25, 2020

May be better with an option in pyproject.toml to opt in to always remove untracked.

@seansfkelley
Copy link
Author

May be better with an option in pyproject.toml to opt in to always remove untracked.

That's a good path forward leading up to a breaking change, but I'm specifically making this suggestion as a breaking change because I think it makes the default behavior less surprising and more in line with dependency management in other languages. I left more thoughts about this at #648 (comment) as well.

@finswimmer
Copy link
Member

Note: --remove-untracked will be renamed into --sync in poetry 1.2.

We've decided that the default behavior is to never remove any packages from a venv unless this option is given. Due to the number of issues about it, it seems to be the expected behavior for many users.

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 11, 2022
Copy link

github-actions bot commented Mar 1, 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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

4 participants