-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
How do I safely clean vcpkg archives and disable it? #14157
Comments
Hi @stvriver You can delete |
You can disable it by updating these changes in toolsrc/include/vcpkg/vcpkgcmdarguments.h file:
Related PR #12370. |
Hi @stvriver |
I am sorry for late checking this. Thanks NancyLi1013 for support. After I look into vcpkg commands help, I realize that vcpkg supports disable binary caching by "either passing |
Hi @stvriver Thanks for your further investigation about binary caching. To be honest, I also didn't focus on the workaround to disable binary caching before you pointing this out. Thanks for your help. As you mentioned above, there are two ways to disable it:
Note: Please restart your machine after you set it. |
Hi @NancyLi1013 |
Thanks for your feedback. I'm closing this issue for now. |
I have simple workaround it for linux. |
Hi @NancyLi1013 if I directly delete vcpkg folder listed in C:\Users\usrName\AppData\Local, will there be problems such as import errors later? |
I've tried deleting the vcpkg folder in AppData\Local because I had several versions that I no longer needed. Unfortunately it's caused a problem for me - none of my projects now rebuild - they can't find header files and the packages aren't being re-created. |
That problem doesn't seem to be linked to deleting the compressed artifact archives in |
After deleting the directory VS behaved as though vcpkg wasn't available to it. After closing and re-opening VS, the vcpkg tab disappeared from the project settings. My projects now build OK again. |
Recently I realize that the archives folder stored in Windows at "C:\Users\usrName\AppData\Local\vcpkg\archives" is quite big. Since I do not need this archives while it occupies some precious SSD space. How can I safely remove this folder and prevent vcpkg from storing back in future?
The text was updated successfully, but these errors were encountered: