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

poetry cache clear no longer respects --no-interaction flag #6291

Closed
3 tasks done
graipher opened this issue Aug 31, 2022 · 7 comments · Fixed by #6338
Closed
3 tasks done

poetry cache clear no longer respects --no-interaction flag #6291

graipher opened this issue Aug 31, 2022 · 7 comments · Fixed by #6338
Labels
area/cli Related to the command line kind/bug Something isn't working as expected

Comments

@graipher
Copy link

  • 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: Ubuntu 22.04
  • Poetry version: 1.2.0
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Since poetry version 1.2.0, the poetry cache clear command no longer respects the --no-interaction flag:

$ poetry cache clear --all --no-interaction .
Delete 1882 entries? (yes/no) [no] ^C
@graipher graipher added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 31, 2022
@dimbleby
Copy link
Contributor

duplicate #6212, please close

@neersighted
Copy link
Member

Not quite duplicate, but known and tracked by two different PRs at different points. I'll leave this open since we didn't have an issue tracking it (and the author may not come back to that PR).

@neersighted neersighted added area/cli Related to the command line status/external-issue Issue is caused by external project (platform, dep, etc) and removed status/triage This issue needs to be triaged labels Aug 31, 2022
@Secrus
Copy link
Member

Secrus commented Aug 31, 2022

It is not really an upstream issue, I explained it here

@Secrus Secrus removed the status/external-issue Issue is caused by external project (platform, dep, etc) label Aug 31, 2022
@neersighted
Copy link
Member

I was referring to python-poetry/cleo#234 -- or did I misunderstand, and was that fix not needed for this particular usage in Poetry?

@Secrus
Copy link
Member

Secrus commented Aug 31, 2022

I was referring to python-poetry/cleo#234 -- or did I misunderstand, and was that fix not needed for this particular usage in Poetry?

Kinda, but the explanation I linked also stands if I remember correctly. I will check it, but 90% sure python-poetry/cleo#234 is not enough

@branchvincent
Copy link
Member

So python-poetry/cleo#234 indeed fixes respecting --no-interaction, but the second part is changing the default response to True (otherwise, the cache won't actually be cleared): #6338

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
area/cli Related to the command line kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants