Allow contrib_destination to be managed per project.#582
Conversation
|
@jhedstrom - This look sane to you? This sort of file control over download location does seem to be missing from Make AFAICT. |
|
Would this, in the case of make being called with the |
|
@fiasco - any comment? |
|
I tested this with the following Drush make file called build.make: First running |
Allow contrib_destination to be managed per project.
|
Thanks for running those tests. I've tested locally as well and drush make behaves as expected with the |
When defining a Make file, you can't currently control the download contrib destination per project, only globally. This means all module projects are downloaded and restricted to something like "sites/all" by default. If you are using multisite and need to download different modules to different subdirectories, then you can't currently manage that will one drush make call. Likewise, if you want to update modules in a profile, the same issue applies.
This patch amends that be enabling contrib_destination to be controlled per project. However, the project path is still deemed safe through make_safe_path().