Please, don't deprecate vcpkg_apply_patches()
#40537
-
Describe the issue
The issue is, all I don't know if this applies to ports stored in the main vcpkg repo, however, this is definitely a major use-case for private repositories. We are using vcpkg internally in my company and removing "640kb of memory is not enough!" - you just can't cover all possible cases to fetch source code in a few simple small wrappers. Please don't restrict how vcpkg could be used. Please, leave Expected behavior |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You can also download submodules manually (using |
Beta Was this translation helpful? Give feedback.
-
@Osyotr this isn't an option, as it requires to push unnecessary knowledge about source code internal structure into the port. Git already knows it and could and should take care of it. And still - there could be millions of other ways of getting source code. Removing |
Beta Was this translation helpful? Give feedback.
-
Deprecate in this context means "emit a warning and freeze ~forever in a block of ice" not that we intend to remove it: that would break previous versions of ports. It remains true that vcpkg_apply_patches behaves badly in the presence of binary caching and/or --editable, and it is best to avoid it when possible, private registries or not. |
Beta Was this translation helpful? Give feedback.
-
@BillyONeal and @dg0yt , thank you guys for the perspective, that was helpful. I'm glad that this feature is at least not under a risk of sudden removal. |
Beta Was this translation helpful? Give feedback.
Deprecate in this context means "emit a warning and freeze ~forever in a block of ice" not that we intend to remove it: that would break previous versions of ports.
It remains true that vcpkg_apply_patches behaves badly in the presence of binary caching and/or --editable, and it is best to avoid it when possible, private registries or not.