aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/binarycaching.private.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/binarycaching.private.h b/toolsrc/include/vcpkg/binarycaching.private.h
index 1b5d587de..46d9d6741 100644
--- a/toolsrc/include/vcpkg/binarycaching.private.h
+++ b/toolsrc/include/vcpkg/binarycaching.private.h
@@ -31,9 +31,22 @@ namespace vcpkg
std::string nupkg_filename() const { return Strings::concat(id, '.', version, ".nupkg"); }
};
+ namespace details
+ {
+ struct NuGetRepoInfo
+ {
+ std::string repo;
+ std::string branch;
+ std::string commit;
+ };
+
+ NuGetRepoInfo get_nuget_repo_info_from_env();
+ }
+
std::string generate_nuspec(const VcpkgPaths& paths,
const Dependencies::InstallPlanAction& action,
- const NugetReference& ref);
+ const NugetReference& ref,
+ details::NuGetRepoInfo rinfo = details::get_nuget_repo_info_from_env());
struct XmlSerializer
{