-
Notifications
You must be signed in to change notification settings - Fork 382
new core.sources.patch:extra_path conf #3965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new core.sources.patch:extra_path conf #3965
Conversation
|
This documentation doesn't help so much to understand how to apply a patch from a consumer recipe. How can I set |
|
It can't. All |
|
You mean that I can not have two projects on my system: one using minizip from CCI and another one using a patched version ? |
You can have 2 different revisions from minizip, one coming directly from ConanCenter, and the other a local one you built applying your own patches. These two revisions can co-exist in the cache, as any other revisions, and you can use them in different projects, by using a lockfile to guarantee that you are using the specific revision that you want. What is not possible is to apply patches to upstream dependencies from a recipe. They must be applied at |
|
How can I use the patched minizip in my project then ? |
I am not sure what you mean. You create the patched minizip package binary, and use it as any other package. The consumer recipe has to do nothing, the management of the patched package belongs to the package, and it is done at This is a feature for package creation. If you are using modified (or patched) packages from ConanCenter see https://docs.conan.io/2/devops/using_conancenter.html |
|
I’m not sure it will be very easy to use for what I am trying to achieve. After doing some contribution to the godot engine, I wanted to see if it would be possible to move to conan for dependency management. |
|
I understand now what you are trying to achieve. This will not be possible with the For some cases I'd say try to contribute the patch to ConanCenter, if the patch is relevant and interesting enough for the larger audience. But I have seen https://github.com/godotengine/godot/blob/master/thirdparty/minizip/patches/godot-seek.patch, and there is no way this can be merged into ConanCenter, it is too specific. So it depends a bit on what the focus would be, there are 2 scenarios:
In both cases, leaving For the case of just wanting to solve the dependency management for Godot, it might be possible to use a fork of ConanCenter via the |
Docs for conan-io/conan#17520