Skip to content
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] Implement 'repository' tag for NuGet binary caching #13228

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

ras0219
Copy link
Contributor

@ras0219 ras0219 commented Aug 29, 2020

This tag is required to correctly interface with GitHub Packages, because GHP shares a single remote for the entire organization and uses the repository field to associate a package with a particular repository.

This tag will be automatically generated if the default GitHub Actions environment variables are present (GITHUB_XYZ) or if the user defines VCPKG_NUGET_REPOSITORY.

This tag is required to correctly interface with GitHub Packages, because GHP shares a single remote for the entire organization and uses the repository field to associate a package with a particular repository.

This tag will be automatically generated if the default GitHub Actions environment variables are present (GITHUB_XYZ) or if the user defines VCPKG_NUGET_REPOSITORY.
@PhoebeHui PhoebeHui added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Sep 1, 2020
@@ -973,9 +973,27 @@ std::string vcpkg::reformat_version(const std::string& version, const std::strin
return Strings::concat("0.0.0-", abi_tag);
}

details::NuGetRepoInfo details::get_nuget_repo_info_from_env()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how I feel about adding additional places we acquire vcpkg-specific environment settings other than VcpkgCmdArguments::imbue_from_environment. (This comment applies only to VCPKG_NUGET_REPOSITORY, not the others which one might consider 'well known', although in general I would like to see us get away from mixing the acquisition of information from the system and the act of using that information as that makes testing difficult)

No concrete change requested right now, and this does clearly suck that acquisition into a separate function which is good, but something to consider.

@ras0219-msft ras0219-msft merged commit a053679 into microsoft:master Sep 1, 2020
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
…t#13228)

This tag is required to correctly interface with GitHub Packages, because GHP shares a single remote for the entire organization and uses the repository field to associate a package with a particular repository.

This tag will be automatically generated if the default GitHub Actions environment variables are present (GITHUB_XYZ) or if the user defines VCPKG_NUGET_REPOSITORY.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants