Body: <p>For upgrading CiviCRM, I've been told that it is safer to upgrade with <code>drush</code> than manually, but my version of <code>drush</code>, according to another post, has to be upgraded from 8.0.0 to 8.4.5. (See <a href="https://civicrm.stackexchange.com/questions/37985/command-drush-vset-maintenance-mode-1-gives-me-an-error?noredirect=1#comment43127_37985">Command &quot;drush vset maintenance_mode 1&quot; gives me an error</a>)</p>
  <p>After looking a bit around how to do it when your current version has been installed with <code>composer</code>, I discovered I had to issue the command:</p>
  <pre><code>composer require drush/drush:8.4.5
  </code></pre>
  <p>I did it, but I got next output, and I don't know how to deal with that:</p>
  <pre><code>./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - Installation request for drush/drush 8.4.5 -&gt; satisfiable by drush/drush[8.4.5].
      - Installation request for chi-teck/drupal-code-generator (locked at 1.33.0) -&gt; satisfiable by chi-teck/drupal-code-generator[1.33.0].
  
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>
  <p>Any help would be appreciated because I have no clue on what <code>drupal-code-generator</code> has to do or to be. Probably, I have to update <code>drupal</code> for being able to update <code>drush</code>, but I need <code>drush</code> to update <code>drupal</code>: so I am trapped into a deadly embrace.</p>
  <p>Current version of CiviCRM: 5.26.0 (could be updated to 5.30.0)</p>
  <p>Current version of Drupal: 7.69 (needs to be updated to 7.73)</p>
  <p>Current version of PHP: 7.4.3 (OK)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-22T18:10:22.253Z
Comments.Text: I'm a little confused. Either your drupal 7 site was originally installed from tarball, from drush, or from composer. If drupal itself was installed with composer, then you would update drupal with composer and drush is just extra. If it was installed from drush, then your drush would be somewhere else outside the drupal folder tree and shouldn't be getting hung up on other dependencies. So I'm not sure which this is.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-22T19:29:20.740Z
Comments.Text: @Demerit: I first installed drupal 7 from a tarball. I didn't know that `drush` had to be installed in the same way, so I installed it with `composer`. I am ready to remove the `composer` installation of `drush` and to reinstall it with a tarball. The problem is that the docs are very unclear. Your advice seem to be the best I found up to now, so I will go on following it.
Comments.UserDisplayName: Pierre François
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-22T19:37:59.437Z
Comments.Text: The docs provide too many options I agree. You could also just update drupal manually and forget about drush unless you plan to use it for other things. Download from https://www.drupal.org/project/drupal/releases/7.73 and detailed instructions at https://www.drupal.org/docs/7/update/core-option-2
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-10-23T11:00:16.883Z
Comments.Text: While CiviCRM probably works fine on PHP 7.4, there's been some trouble getting it to pass the testing suite.  Out of caution, I'd advise against running it in production.  Also Drupal 7 is already incompatible with PHP 7.4 until you upgrade.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <drush><composer>
Title: Can't upgrade drush with composer
ThreadText: # Can't upgrade drush with composer
  
  (Asked by: username_0 on 2020-10-22)
  
  For upgrading CiviCRM, I've been told that it is safer to upgrade with drush than manually, but my version of drush, according to another post, has to be upgraded from 8.0.0 to 8.4.5. (See Command "drush vset maintenance_mode 1" gives me an error)
  After looking a bit around how to do it when your current version has been installed with composer, I discovered I had to issue the command:
  composer require drush/drush:8.4.5
  
  I did it, but I got next output, and I don't know how to deal with that:
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - drush/drush 8.4.5 conflicts with chi-teck/drupal-code-generator[1.33.0].
      - Installation request for drush/drush 8.4.5 -> satisfiable by drush/drush[8.4.5].
      - Installation request for chi-teck/drupal-code-generator (locked at 1.33.0) -> satisfiable by chi-teck/drupal-code-generator[1.33.0].
  
  
  Installation failed, reverting ./composer.json to its original content.
  
  Any help would be appreciated because I have no clue on what drupal-code-generator has to do or to be. Probably, I have to update drupal for being able to update drush, but I need drush to update drupal: so I am trapped into a deadly embrace.
  Current version of CiviCRM: 5.26.0 (could be updated to 5.30.0)
  Current version of Drupal: 7.69 (needs to be updated to 7.73)
  Current version of PHP: 7.4.3 (OK)
  
  **Tags:** drush, composer
  
  > **Comments:**
  > **username_1**: I'm a little confused. Either your drupal 7 site was originally installed from tarball, from drush, or from composer. If drupal itself was installed with composer, then you would update drupal with composer and drush is just extra. If it was installed from drush, then your drush would be somewhere else outside the drupal folder tree and shouldn't be getting hung up on other dependencies. So I'm not sure which this is.  
  > **username_0**: @username_1: I first installed drupal 7 from a tarball. I didn't know that `drush` had to be installed in the same way, so I installed it with `composer`. I am ready to remove the `composer` installation of `drush` and to reinstall it with a tarball. The problem is that the docs are very unclear. Your advice seem to be the best I found up to now, so I will go on following it.  
  > **username_1**: The docs provide too many options I agree. You could also just update drupal manually and forget about drush unless you plan to use it for other things. Download from https://www.drupal.org/project/drupal/releases/7.73 and detailed instructions at https://www.drupal.org/docs/7/update/core-option-2  
  > **username_2**: While CiviCRM probably works fine on PHP 7.4, there's been some trouble getting it to pass the testing suite.  Out of caution, I'd advise against running it in production.  Also Drupal 7 is already incompatible with PHP 7.4 until you upgrade.  
  
  ---
  
  ## 0 answers
  
  