KEMBAR78
Remove most checked-in dependency libraries by florelis · Pull Request #5390 · microsoft/winget-cli · GitHub
Skip to content

Conversation

florelis
Copy link
Member

@florelis florelis commented Apr 16, 2025

This removes the code for most of the dependency libraries that was checked in, in favor of getting them from vcpkg. This required enabling vcpkg for some projects, like Fuzzing.

The dependencies removed are:

  • catch2
  • JsonCppLib
  • Valijson
  • yamlcpp
  • detours (transitive dependency of UndockedRegFreeWinRT)

From PureLib, also removed the transitive dependency dotzlib. We don't need a replacement for this one.

Moving catch2 to vcpkg also brought in a major update (v2->v3), which required some changes in the included headers and namespaces.

From cpprestsdk, removed some of the code we don't need, like samples and build pipelines. We should remove all of cpprestsdk, but it is not as straightforward because we modified it for certificate pinning, so we need to apply a patch on top of the original code from the port.

PureLib and sfs-client weren't removed because there is no equivalent in vcpkg.

Microsoft Reviewers: Open in CodeFlow

@florelis florelis requested a review from a team as a code owner April 16, 2025 02:08
@florelis florelis merged commit ea35028 into master Apr 16, 2025
11 checks passed
@florelis florelis deleted the vcpkg branch April 16, 2025 21:43
florelis added a commit that referenced this pull request Apr 22, 2025
Follow-up to #5390

We have copies of `PureLib` and `UndockedRegFreeWinRT` in the repo that
themselves include code from their dependencies (`catch2`, `zlib`). This
PR removes that code in favor of using vcpkg to fetch the dependencies.

For `PureLib`, after removing `zlib`, there are only headers left. So I
replaced the `.vcxproj` with a `.vcxitems`

For `UndockedRegFreeWinRT`, I removed all the test code along with the
copy of catch2.

Updated the READMEs for the subtrees, although I'm not certain a subtree
update would still work...
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/5399)
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.

2 participants