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

Support Azure universal packages as a binary caching provider #1491

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

data-queue
Copy link
Contributor

This PR adds support for the Azure CLI, specifically the az artifacts universal download and az artifacts universal publish commands, which are APIs needed to fetch and store packages.

In order to authenticate, you will need to login to the Azure CLI before running vcpkg.

include/vcpkg/base/message-data.inc.h Outdated Show resolved Hide resolved
include/vcpkg/base/message-data.inc.h Outdated Show resolved Hide resolved
src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
src/vcpkg/binarycaching.cpp Show resolved Hide resolved
src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
src/vcpkg/tools.cpp Outdated Show resolved Hide resolved
src/vcpkg/tools.cpp Outdated Show resolved Hide resolved
src/vcpkg/tools.cpp Outdated Show resolved Hide resolved
{
size_t count_stored = 0;
auto ref = make_feedref(request, "");
std::string package_description = "Cached package for " + ref.id;
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be a good idea to have this be in FeedReference so that it can be tested rather than made up here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I will make that change in another PR after this PR is merged.

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

Only nitpicks remain. This approval is contingent on the room saying the spelling/behavior is OK and either:

  • testing that the version of az you look for actually supports the feature you're trying to use, or
  • setting the minimum version we're looking for to what you actually tested

Copy link
Member

@vicroms vicroms left a comment

Choose a reason for hiding this comment

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

LGTM. Would like to have at least a documentation draft before merging.

@data-queue data-queue merged commit 67931f1 into microsoft:main Oct 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants