-
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
[vcpkg] Allow to use Nuget's cache for Nuget binary caching sources (fix #15169) #15512
Conversation
The warning was ```shell ../src/vcpkg/commands.porthistory.cpp:55:14: error: unused function 'is_date' [-Werror,-Wunused-function] ```
As the name suggests, this environment variable allow tu use Nuget cache for Nuget binary caching sources.
cc @ras0219 for review this PR. |
Hi @ras0219 ! Any news/feedback on the pull request? 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the long feedback loop!
This LGTM, though the new environment variable should be added:
- to
docs/users/config-environment.md
(cross-linked with binarycaching.md) - to
docs/users/binarycaching.md
(cross-linked withconfig-environment.md
) - to
help_topic_binary_caching()
inbinarycaching.cpp
Once docs are added, this should be merged! Thanks again for the great feature work :)
microsoft#15169) (microsoft#15512) * Fix warning on clang version 10.0.0-4ubuntu1 The warning was ```shell ../src/vcpkg/commands.porthistory.cpp:55:14: error: unused function 'is_date' [-Werror,-Wunused-function] ``` * Add environment variable VCPKG_USE_NUGET_CACHE As the name suggests, this environment variable allow tu use Nuget cache for Nuget binary caching sources. * Document NuGet's Cache environment variable
@JackBoosY any chance a command-line option could be added to avoid having to set the ENV variable? Like --x-use-nuget-cache? |
You can open an issue with this question. |
Describe the pull request
VCPKG_BINARY_SOURCES
#15169I also fixed a warning on
Fix warning on clang version 10.0.0-4ubuntu1
so that I could compiletoolsrc
(the functionis_date
was not used anymore).I should probably add documentation, but I wanted feedback before writing the doc. I fixed the issue I raise in #15169 by introducing an environment variable
VCPKG_USE_NUGET_CACHE
. This is the simplest solution I could think of, and it has the advantage of requiring a very small changeset/pull request.I'm looking forward for your feedback. 🙂
Which triplets are supported/not supported? Have you updated the CI baseline? The same. No.
Does your PR follow the maintainer guide? Yes.