-
Notifications
You must be signed in to change notification settings - Fork 335
Description
Hello vcpkg tool team,
I’ve read the article about resolving the version override issue for Boost boost-version.
In my opinion, the current solution for handling cascade version overrides is not very elegant.
After reviewing some of the version control code in vcpkg-tool, I would like to suggest an alternative: supporting wildcard names in the overrides section. For example:
{
"name": "boost-*",
"version": "1.80.0"
}As a first and simple step, supporting * would already cover most cases where cascade dependencies occur. This is because sub-packages from the same package group typically share a common name prefix. The same approach would also work for packages like qt-*.
From an implementation perspective, vcpkg-tool would only need to add a version override check during the dependency resolution process.
Additionally, it would be reasonable to restrict the * to appear only after a -, in order to avoid unintended matches (e.g., boo* potentially affecting unrelated package names).