Replies: 2 comments 1 reply
-
|
Option a) find an old archive somewhere and put it in your downloads. It is recommended to setup asset caching to prevent issues like this. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting, so if I've understood this correctly: if you want to use a specific version of a vcpkg package, it will eventually fail to build as the github archive hash will eventually change after the port was written. Using an asset cache seems like a prerequisite to using vcpkg then. Also if you later turn on a feature for that port that pulls in an additional dependency, that can also fail to build.. Would it not make more sense to rely on the githash, instead of the archive hash, or at least have the gitref as a fallback? That would solve this issue alltogether. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm working on a company where we're trying to move a bunch of dependencies over to vcpkg. However, I've made a minimal example to demonstrate my question. The example has the following vcpkg.json file:
{ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "builtin-baseline": "5422eb983d4ca8bc4851ac9771d6e74554efc5c8", "name": "myxmlapp", "version-string": "1.0.0", "dependencies": [ "libxml2" ], "overrides": [ { "name": "libxml2", "port-version": 5, "version": "2.9.12" } ] }However, the download of libxml2 fails with this error message:
How are you supposed to handle cases like this? You can't change the hash of an old version, since old versions just point to a commit hash of the vcpkg repo. And I don't want to upgrade the version since the actual project is a very big, and upgrading third party dependencies requires a lot of QA etc. It also seems a bit dangerous if the hash of the downloaded repo can just change at any time, making our build process stop working. Is there a way to tell vcpkg to ignore this hash maybe?
Beta Was this translation helpful? Give feedback.
All reactions