[swift-build-dev] [swift-evolution] [Proposal] Applying local git patches
radu.v.valentin at me.com
Sun Jan 10 16:56:22 CST 2016
I’d like to discuss the possibility of adding support for git patching packages.
This would solve the following problem:
You want to add library A to your project. It’s open source and mostly does what it says, but has a small bug. You fix the bug but the library’s developer is not responsive or doesn’t want to add the fix right away. Or, maybe you add a small modification to fit your requirements. Either case, you would like to have a way to apply your patch but also keep the original repo linked.
Both text (i.e. `empty_name.patch`) and local/remote url patches could be supported. For the urls, they could be contained in the package manifest. The files could follow the directory naming convention (maybe `Patches`?)
The only way I can think of achieving something similar would be to separately clone project A, make the changes and maintain yet another repo. This, in my opinion, should be avoided.
Please let me know what you think about it.
More information about the swift-build-dev