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.
The Drush project page gives instructions for manually installing Drush using a symbolic link, but if it's installed that way, run-tests-drush.sh fails to correctly get its real directory. The problem is easily fixed.
Comment | File | Size | Author |
---|---|---|---|
#7 | devel-symlinked-drush-2186691-7.patch | 636 bytes | TravisCarden |
Comments
Comment #1
TravisCarden CreditAttribution: TravisCarden commentedThis oughta do the trick.
Comment #3
TravisCarden CreditAttribution: TravisCarden commentedIt doesn't look like my patch caused the test failures. Can I just set the issue back to "Needs review" without re-invoking the testbot?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedOSX readlink has no -m, at least for me.
Comment #5
TravisCarden CreditAttribution: TravisCarden commentedD'oh! Well, maybe it's not necessary. It still does the job for me without it, and I forget now why I used it in the first place. :-P Does it work for you now?
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedNot working for me:
Comment #7
TravisCarden CreditAttribution: TravisCarden commentedWell, it's a horrible concession, but if
realpath
works for OSX then this gets the job done. (Attached.)Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedWe figure out the path to drush in a few other places. Maybe we should be consistent?
drush/examples/example.bashrc
drush/drush.complete.sh
Comment #9
TravisCarden CreditAttribution: TravisCarden commentedexample.bashrc doesn't look like it's cross-platform compatible, either. I wonder if Drush should expose this information itself so all the edge cases can be handled properly in one place. Something like
drush core-status drush-path --format=list
? I'd like to see that detail incore-status
anyway. If you like that idea, @moshe weitzman, I'll create the issue against Drush.Comment #10
moshe weitzman CreditAttribution: moshe weitzman commentedThe point here is to find the path to Drush. You obviously can't depend on Drush to get that answer.
Comment #11
willzyx CreditAttribution: willzyx commentedThis doesn't seems an issue anymore in the 8.x branch, since there is not a run-tests-drush.sh. Moving to 7.x
Comment #12
moshe weitzman CreditAttribution: moshe weitzman commentedLets not do this