-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
cache:clear arguments are confusing #521
Comments
Has anyone come up with a workaround that will permit one to |
also - how can you list up the "named" caches ? |
Still can't figure out how to clear the cache. I'm basically deleting dirs in |
|
Those are the virtual environments, which are not the same as the cache, right? Or is that what |
@seansfkelley I had an issue where after changing virtualenv's to be project local existing projects in this directory had to be deleted before projects worked with the new setting. |
I found out that the command is supposed to be: |
What is the purpose of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
As a user, this is a bit frustrating for issues to be automatically closed when the problem is unresponsiveness from the maintainers. |
I can understand the use of a stale bot, the messaging is the important part. Somehow I got
while the linked issue got
There is a big difference between the two in terms of how the community is being treated. |
I see, good point on the messaging part. It's weird because both messages were posted 16 days ago 🙂 |
@epage thank's for pointing to this. I never realized that there are any difference between the message and the linked post and indeed in this case the message sounds to rough. I will ping @sdispater to take a look at this. fin swimmer |
This still seems confusing with 1.0:
How is a user supposed to know what name is valid? |
Just for completeness, this issue is not resolved, nor just a documentation issue. OS: Ubuntu 18.04.4 LTS $ poetry --version
Poetry version 1.0.3
$ poetry cache clear -- --all
[RuntimeError]
Add the --all option if you want to clear all --all caches
$ poetry cache clear --all
Not enough arguments (missing: "cache"). $ poetry cache:clear --all
The command "cache:clear" is not defined.
$ poetry cache clear pypi --all
Delete 791 entries? (yes/no) [no] yes |
Not working in Ubuntu 20.04 |
Also, |
So there is a bug in the help text? |
It should be explained in the help text that the $ poetry config --list | grep repositories | cut -d. -f2
custom-pypi1
custom-pypi2
custom-pypi3
$ ls ~/.cache/pypoetry/cache/repositories
custom-pypi1 custom-pypi2 custom-pypi3 pypi In this case, the command would complete the cache positional argument with these custom repositories plus Still, it seems the command is a bit broken, because you must use the |
I just ran |
Does the |
Not only the dot is mandatory for no reason (should be default), but also |
Looks like |
Manually deleiting cache works for my case 🤷♂️ |
It would be nice to have a |
it this a documentation error or not? just started to use poetry, so far it's not as robust as the typical pip+venv approach, unsure about what the real benefit is if it keeps having 'basic' bugs :( |
How to clear cache for a specific package? I am having to clear the cache almost every time to be able to update a dependence which I have just sent to pypi. |
I think you can use |
work for me too. for windows the path is this: |
After a bit of stumbling around, not wanting to delete the whole cache, perhaps a better help message for the clear command?
Or an updated USAGE section:
|
PRs are definitely welcome to improve the documentation and help messages. |
…thon-poetry#3573, python-poetry#2211, python-poetry#521 and PR python-poetry#2414 - Added section about `extras` in `dependency-specification.md` (python-poetry#2414) - Added note about VCS inclusion and exclusion in `include`/`exclude` sections of `pyproject.toml` (python-poetry#4800) - Added link to dependency specification in `add` command documentation (python-poetry#3573) - Added more info on default behaviour and cleaned up `virtualenv.in-project` setting documentation (python-poetry#3709) - Added missing configuration options to `configuration.md` (python-poetry#2211)
…5656) * Changes in docs for Issues #4800, #3709, #3573, #2211, #521 and PR #2414 - Added section about `extras` in `dependency-specification.md` (#2414) - Added note about VCS inclusion and exclusion in `include`/`exclude` sections of `pyproject.toml` (#4800) - Added link to dependency specification in `add` command documentation (#3573) - Added more info on default behaviour and cleaned up `virtualenv.in-project` setting documentation (#3709) - Added missing configuration options to `configuration.md` (#2211) Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
Looks like the documentation is now clear about this: https://python-poetry.org/docs/cli/#cache-clear |
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. |
-vvv
option).Issue
It reads as if
--all
andcache
name are mutually exclusive (instead of clearing the named cache, I clear all caches) but when I dopoetry cache:clear --all
The text was updated successfully, but these errors were encountered: