-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[vcpkg] Add environment variable VCPKG_DEFAULT_BINARY_CACHE #12423
[vcpkg] Add environment variable VCPKG_DEFAULT_BINARY_CACHE #12423
Conversation
From
So, the existing way to do exactly this is to define |
@ras0219 you should be able to change the location of the default binary caches even without using this new |
@strega-nil: do i just need to rerun clang-format to resolve the conflict? Or will you resolve the conflicts? |
@Neumann-A yeah, it just needs to be LF and not CRLF. |
…ary_cache # Conflicts: # toolsrc/src/vcpkg/binarycaching.cpp
@strega-nil I think we need to improve the error message. |
@JackBoosY yeah, I think you're right. I don't know how to get it to do what I want tho |
@strega-nil I'll do that. Don't worry. |
@ras0219-msft: Either I am doing something wrong or this deactivates binary caching completly i am doing something wrong. I copied your settings a bit too much. Found the cache on D: instead of E: where i expect it. |
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@Neumann-A can you rename |
Thanks @Neumann-A ! |
…t#12423) * [vcpkg] Add environment variable VCPKG_BINARY_CACHE * apply clang-format * change line ending * Update toolsrc/src/vcpkg/binarycaching.cpp Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * Remove comment Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * rename to VCPKG_DEFAULT_BINARY_CACHE * apply clang format Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
…t#12423) * [vcpkg] Add environment variable VCPKG_BINARY_CACHE * apply clang-format * change line ending * Update toolsrc/src/vcpkg/binarycaching.cpp Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * Remove comment Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * rename to VCPKG_DEFAULT_BINARY_CACHE * apply clang format Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Add an environment variable to reroute the binarychaching feature away from the users local data folder.
Somebody missed to add a user bailout from the default behavior ;)
Also:
Why the heck is that thing return
const ExpectedS<fs::path>&
of a static than using a lambda which returnsExpectedS<fs::path>
which than again is in a function returningconst ExpectedS<fs::path>&
. Can we not agree to just returnconst ExpectedS<fs::path>
for RVO instead of a function local static variable which gets turned into another function local static variable?Docs? Not yet, somebody has to add docs for binary caching anyway in the future. I'll leave it to him/her;)