-
-
Notifications
You must be signed in to change notification settings - Fork 529
Vcpkg Package Manager #2925
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 Package Manager #2925
Conversation
Also add empty array returns for GetAvailableUpdates_UnSafe and GetInstalledPackages_UnSafe to allow building.
(for GetInstalledPackages_UnSafe())
… it in your environment variables
…iGetUI into vcpkg-package-manager
Also, do you think it would make sense to list |
…tting, as it isn't necessary (this was tested)
OK, looking through the UI, the settings UIs look really great, and everything major works as intended. However, there's a few things I noticed.
I'll look through all the diffs to see if there's anything else I missed. |
…imarily the settings page)
Oh, this actually makes sense.
This can be kinda fixed. On the LoadManager() method, you can check if the setting is empty, and if it is not set, it can be set to a default value. I don't know how to get the system default triplet, but if you know how to and you want to fix this it'd be great,
If I enable source support again this issue should fix itself.
This might me my fault, VS might have created it automatically and then I used a lambda. I will get this fixed. |
Sounds good, thank you!
Yes, I noticed and realized this as I was looking through the settings to add a restart required banner for #2883. I'll go do that in a second. [edit: fixed in f47ab63]
Ahh, of course. That makes sense. |
This is a bug I am aware of, uninstalled packages still show as installed on the discover page |
I will merge once I add the icon. The rest looks fine for me |
OK, thank you! Do you need me to make the icon, or will you do that yourself? |
Also, just a note in case any issues are opened about vcpkg package discovery taking a while - I have tested this by running |
I'll do this myself |
Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.
TODO before merging (for @marticliment)
This pull request is for support for the vcpkg package manager.
I'm sorry if the code is not good, this is my first time ever working with C#. I tried to write code in the style of all the other package managers and not touch more than I needed to.
List of Added Translations:
Manager Capabilities (for the table on the home page):
Install as administrator: yes (for vcpkg roots in an admin-locked directory)
Skip integrity checks: no (I don't think vcpkg has this capability, or if it has integrity checks to skip)
Interactive installation: no (it's being built from the command-line; there's no interactivity to show)
Install Older Versions: no (vcpkg doesn't support this on a global scale, only for projects with vcpkg.json control files)
Install a PreRelease Version: no (vcpkg doesn't have pre-release versions)
Install a Custom Architecture: not directly supported but can be easily achieved (via using a different triplet / source)
Install on a Custom Scope: no (everything just gets installed to the vcpkg directory)
Custom Install Location: no / sort of not directly supported but can be easily achieved? (everything just gets installed to the vcpkg directory; you can change which vcpkg directory via the "Custom vcpkg root" setting)
Custom Package Sources: not directly supported but can be easily achieved (it will automatically detect custom triplet / source CMake scripts dropped into
%VCPKG_ROOT%\triplets
or%VCPKG_ROOT%\triplets\community
)Other Potentially Unresolved Things
DefaultVcpkgTriplet
setting isn't being set properly, but I was told to leave the UI to Marti, and so that's what I'm doing.Closes #2146