Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Over at #1267228: Drush Make should use Drush core's native download abilities concurrently, _make_download_file()
is causing some problems for concurrency. It's also lots of duplicated code.
Comment | File | Size | Author |
---|---|---|---|
#6 | drush-replace-make-download-file-1404416-06.patch | 7.99 KB | jhedstrom |
#5 | drush-replace-make-download-file-1404416-03.patch | 7.35 KB | jhedstrom |
#1 | drush-replace-make-download-file-1404416-01.patch | 6.31 KB | jhedstrom |
Comments
Comment #1
jhedstromThis patch is a start, but one test is failing since _make_download_file was doing quite a bit of magic with response headers for manipulating downloaded files.
Comment #2
jhedstromThe test that is failing is the one that uses POST to download. Moshe thinks this could safely be removed, and I personally haven't used POST in a make file that I remember, so we may be able to remove that functionality.
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedDoes that mean that _make_download_file was actually better? Should we be replacing the other way around?
Comment #4
Steven Jones CreditAttribution: Steven Jones commentedComment #5
jhedstromThis patch removes the POST functionality, and all tests are passing.
Comment #6
jhedstromThis patch turns caching on, and removes the
make_download_post()
function.As msonnabaum suggested in IRC, somebody can always re-implement POST in contrib if it's really needed (see Make CVS for an example).
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedGreat. Could we try to let drush_download_file() put the file in its $destination? If not possible, use drush_move_dir().
IMO, this is RTBC and should be committed now as this is crucial for a drush5 release.
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedFixed up per #7 and committed since tests are passing. Lets get that concurrency patch in!
Am creating a Change Notification record for this now.
Comment #9
helmo CreditAttribution: helmo commentedWell I'm someone who needs the POST support. I need it to download tinymce translations.
I've spent some time to create a make_post project as suggested in #6
See: http://drupal.org/project/make_post
I'd love to welcome an extra maintainer there...
Comment #11
David Stosik CreditAttribution: David Stosik commentedThe file commands/make/README.txt still mentions this
Shouldn't this be removed, as we need an extra module to generate POST requests ?
David
Comment #12
moshe weitzman CreditAttribution: moshe weitzman commentedUpdated docs to point to new module.