Create a new vcpkg helper port from CMake function like vcpkg_from_github
, vcpkg_from_git
, etc.
#37663
theblackunknown
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
I am also for |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to start discussion about moving the following vcpkg functions into a
vcpkg
helper port:vcpkg_from_bitbucket
vcpkg_from_git
vcpkg_from_github
vcpkg_from_gitlab
vcpkg_from_sourceforge
In an enterprise environment, we may maintain several mirrors for a number of source code repository and I want to be able to override those implementation to redirect the checkout to those instead of the public URL hardcoded in
vcpkg
provided implementation [1].Having those into a
vcpkg
helper port instead ofvcpkg
scripts means that we can now override/overlay and version those as needed, which strictly improve the current usability.In a nutshell, I envision as the same refactoring which was done with the introduction of
vcpkg-cmake
andvcpkg-cmake-config
and allow for someone to override/overlay those using a custom registry or overlay ports respectively.I did search for similar discussions but did not find any, however I found one interesting bit that this idea may help formalize: #33480 (comment)
I am opening this as a discussion before diving into implementation, but happy to start implementing this is this sounds useful !
[1] It is sometimes configurable, for example in
vcpkg_from_github
where we can provideGITHUB_HOST
andAUTHORIZATION_TOKEN
but this is not flexible enough to implement my use case because sometimesREPO
name differs, and it is more powerful to overridevcpkg_from_github
with custom logic than to go and change every portportfile.cmake
we are interested in.Beta Was this translation helpful? Give feedback.
All reactions