Skip to content

[vcpkg registries] Add git registries#15054

Merged
strega-nil merged 9 commits intomicrosoft:masterfrom
strega-nil:git-registries-impl
Jan 15, 2021
Merged

[vcpkg registries] Add git registries#15054
strega-nil merged 9 commits intomicrosoft:masterfrom
strega-nil:git-registries-impl

Conversation

@strega-nil
Copy link
Copy Markdown
Contributor

@strega-nil strega-nil commented Dec 11, 2020

Add git registries support to the registries module of vcpkg.

Depends on #15583

@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 Dec 11, 2020
@strega-nil strega-nil marked this pull request as ready for review December 12, 2020 00:49
Copy link
Copy Markdown
Contributor

@ras0219 ras0219 left a comment

Choose a reason for hiding this comment

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

(only reviewed to registries.cpp:193)

This will need a lot of tests added before merging; it should probably pull #15081 to make that easier. I suspect it will be faster to review and merge this PR if it was split into two:

  1. Refactor existing Builtin+Filesystem registry into this new architecture (+tests for those)
  2. Adding Git registries + tests

(Remember that code review costs are super-linear with number of lines changed!)

@strega-nil strega-nil marked this pull request as draft December 14, 2020 22:54
@strega-nil strega-nil added the depends:different-pr This PR or Issue depends on a PR which has been filed label Dec 14, 2020
@strega-nil strega-nil changed the title [vcpkg registries] Registries: Take 2 (allow registries + versioning) [vcpkg registries] Add git registries Dec 14, 2020
@strega-nil strega-nil force-pushed the git-registries-impl branch 5 times, most recently from a460826 to 0a9b960 Compare December 21, 2020 23:41
@strega-nil strega-nil removed the depends:different-pr This PR or Issue depends on a PR which has been filed label Dec 21, 2020
@strega-nil strega-nil marked this pull request as ready for review December 21, 2020 23:41
@vicroms vicroms dismissed their stale review January 8, 2021 05:40

Issues solved.

Copy link
Copy Markdown
Contributor Author

@strega-nil strega-nil left a comment

Choose a reason for hiding this comment

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

I didn't notice anything else in a cursory glance.

Copy link
Copy Markdown
Contributor

@ras0219 ras0219 left a comment

Choose a reason for hiding this comment

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

This also needs several end-to-end tests. I'd suggest having the end-to-end tests construct a local git repo with an appropriate history and then point to that temporary repo for testing.

@strega-nil
Copy link
Copy Markdown
Contributor Author

This also needs several end-to-end tests. I'd suggest having the end-to-end tests construct a local git repo with an appropriate history and then point to that temporary repo for testing.

It does, though? https://github.com/microsoft/vcpkg/pull/15054/files#diff-de6d1117ad4379767b02529167248f18bbad1b56758118cccfaa915d534be7b7R56

@ras0219
Copy link
Copy Markdown
Contributor

ras0219 commented Jan 11, 2021

Oops, I managed to forget about the e2e tests by the time I got to the end of the diff 👍

@strega-nil strega-nil marked this pull request as draft January 11, 2021 19:04
@strega-nil strega-nil added the depends:different-pr This PR or Issue depends on a PR which has been filed label Jan 11, 2021
@strega-nil strega-nil force-pushed the git-registries-impl branch 2 times, most recently from 248acec to 98f90a7 Compare January 12, 2021 17:44
@strega-nil strega-nil marked this pull request as ready for review January 12, 2021 17:50
@strega-nil strega-nil force-pushed the git-registries-impl branch 2 times, most recently from b92308f to 9e00cc6 Compare January 14, 2021 00:53
* Add git registries support to the registries module of vcpkg.
* add e2e tests for git registries
* fix vcpkg.cmake for registries
@strega-nil
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@strega-nil strega-nil merged commit a597134 into microsoft:master Jan 15, 2021
Jimmy-Hu added a commit to Jimmy-Hu/vcpkg that referenced this pull request Jan 15, 2021
[vcpkg registries] Add git registries (microsoft#15054)
@strega-nil strega-nil deleted the git-registries-impl branch January 19, 2021 19:51
strega-nil added a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
* [vcpkg registries] Add git registries support

* Add git registries support to the registries module of vcpkg.
* add e2e tests for git registries
* fix vcpkg.cmake for registries

* fix CRs, remove a thing

* better error messages

* Billy CRs

* fix Robert's CR comment

* I learned about `-c` today

* format

* fix baseline.json

* failing to find baseline is technically not a bug
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 depends:different-pr This PR or Issue depends on a PR which has been filed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants