symplify / vendor-patches

Patch your vendor files the easy way
https://tomasvotruba.com/blog/2020/07/02/how-to-patch-package-in-vendor-yet-allow-its-updates/
MIT License
128 stars 14 forks source link

Enable configuring patches directory path #12

Open siemova opened 11 months ago

siemova commented 11 months ago

Currently, the path to the "patches" directory is hard-coded in PatchFileFactory. I want to use ".composer/patches" instead, and I expect others have similar requirements, so it would be helpful to enable configuring that somewhere.

TomasVotruba commented 11 months ago

Hi, that sounds reasonable.

Would you like to contribute this feature? How would you implement it?

siemova commented 10 months ago

I tried my hand at implementing this using an environment variable. If that is unacceptable for some reason, the alternative appears to be adding an optional parameter to the generate command. Please let me know what you think.

TomasVotruba commented 10 months ago

Thanks for the kickoff. The command option would be better indeed, as clear entry point of the value. Could you handle it?