Replies: 6 comments
-
I believe your use case is covered by asset caching https://learn.microsoft.com/en-us/vcpkg/users/assetcaching combined with |
Beta Was this translation helpful? Give feedback.
-
as 1) Isn't this a complicated way to achieve what a proxy could do in a less explicit way? ad 2) Yes. E.g. Did you consider vcpkg's asset caching? |
Beta Was this translation helpful? Give feedback.
-
I cant work with x-azurl since I do not have a Azure Blob Storage or a fileshare. This would also prohibit user to add/try new packages before someone uploads them. However, I could run my search and replace through x-script to my download tool. This is quite nice as I can also handle authentification there more easy. But i guess, |
Beta Was this translation helpful? Give feedback.
-
It can be used with FTR with |
Beta Was this translation helpful? Give feedback.
-
Can you explain what you and the documentation page means by "renaming based on SHA512"? Can vcpkg download sources by SHA512? How? When I set I still think my "redirect to my server that caches" (with x-script) is the best solution for usability even if it does not support all download mechanisms. |
Beta Was this translation helpful? Give feedback.
-
Hi again, so as announced, I used X_VCPKG_ASSET_SOURCES x-script. Is it correct, that my logs in that script are not printed as long as it succeeds? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone.
At my company we have a strict policy that everything we use needs to be persisted at our servers. Therefore the regular download from github etc mechanism is not allowed. We have mirror servers that redirect to original server but cache and persist the files downloaded.
I have found a way to redirect the all downloads in vcpkg to our servers at quite a central position: vcpkg_download_distfile.cmake.
So I added and called this function there:
To prevent that other urls are used (sneaking by our proxy settings) I also added and used:
Of course, the patch-pairs and allowed urls (plural!) should be a CMake variable instead of being hard coded.
VCPKG_DOWNLOAD_PATCH_URLS
andVCPKG_DOWNLOAD_ALLOWED_URLS
.Beta Was this translation helpful? Give feedback.
All reactions