Problem/Motivation
If the current site uses Drupal 6, then the installation instructions$ drush dl drush_sup
recommended in README.txt fail because drush looks for a 6.x release of drush_sup.
Proposed resolution
Update the instructions in README.txt: either$ drush dl drush-sup-7.x-2.x --select
as recommended in #3 or$ drush @none dl drush_sup
as suggested in #4.
Remaining tasks
Wait until the maintainer decides to make a new release.
This issue has been fixed. The instructions in #3 have been added to README.txt, as you can see by downloading the project using git. As soon as there is a new release, its README.txt will include these instructions.
Please do not re-open this issue (as in #6) in the hope of getting the updated instructions into the packaged README.txt. If you feel that the suggestion in #4 is simpler/better than the one in #3, please think about whether it makes enough of a difference to be worth re-opening the issue.
User interface changes
Update README.txt.
API changes
None.
Original report by benjifisher
The command
drush dl drush_sup
recommended in README.txt fails because my current Drupal site is 6.x and so drush looks for a 6.x release of drush_sup.
The attached patch to README.txt recommends checking the project page for the current version and then running something like
drush dl drush_sup-7.x-2.0
instead. (This seems to work today even though the current version is 7.x-2.0-beta1.)
| Comment | File | Size | Author |
|---|---|---|---|
| drush_sup-install.patch | 575 bytes | benjifisher |
Comments
Comment #1
greg.1.anderson commentedThe provided instructions will work fine if you run them from your home directory. I updated the README.txt on the 7.x-2.x branch to more fully explain the installation options.
Comment #2
benjifisherI tried the instructions from the new README.txt while I was in a D6 directory:
That is why I suggested
drush dl drush_sup-7.x-2.0in my patch.It does work as expected from my home directory, so that part of the instructions is an improvement.
Comment #3
greg.1.anderson commentedYou are correct -- drush_sup-7.x does not work from within a Drupal 6 site; even default-major=7 does not work. I changed the recommendation to
drush dl drush-sup-7.x-2.x --selectto avoid the warning message (and so that the command is still accurate when there is a 2.1 release).Comment #4
benjifisherOK, that works. I found another solution, directly addressing the cause of the problem (that I am doing it from a D6 directory):
(Yes, my user name is drupal.)
Comment #6
dhigby commentedForgive me for re-opening this, but I was looking all over for the answer to why I couldn't install drush_sup and finally found the answer here and not in the README.txt file.
Please include benjifisher's installation command in the readme and on the project page:
drush @none dl drush_supComment #7
benjifisher@dhigby:
The solution described in #3 has already been committed. Unless you downloaded the project using git (some time after 10/11/2012) it will not be in the README.txt file on your system, but going forward, there will be a new release (sooner rather than later, we hope) and from then on anyone who downloads the tarball will have that set of instructions. So the problem is as fixed as it is going to get in this forum. You can see the git version of README.txt here: http://drupalcode.org/project/drush_sup.git/blob/refs/heads/7.x-2.x:/REA... (link from the project page). Come to think of it, I can claim some credit for that: see #1809090: Update links on the project page..
Naturally, I agree that my solution in #4 is simpler than the one that got committed in #3, but I did not think it was worth re-opening the issue. Maybe if I mark the issue RTBC, one of the maintainers will take notice.
Short version:
drush @none dl drush_supis simpler thandrush dl drush-sup-7.x-2.x --select.Comment #8
Erich Schulz commentedI'm on drush 5.8 - I had to use @none:
Comment #9
benjifisherThis issue has been fixed. See #3 and 191a1a3. If you disagree, please read the issue summary (which I just added) before reopening this issue.
Comment #10
greg.1.anderson commentedI talked with moshe about this at BADcamp, and concurred that using @none is a bit odd. Naming the specific version is better, but takes more typing. I think that the advice in the currently checked-in README.txt is clear; I added a brief section on installation on the project page that recommends cd'ing to your home directory before downloading drush_sup.
Thanks for all of the feedback.
Comment #11.0
(not verified) commentedAdd an issue summary to discourage people from reverting the status.