When requiring drush, do it with the -W param
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3440448. --> Reported by: [fjgarlin](https://www.drupal.org/user/2495842) Related to !183 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>In <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates/issues/3437434" title="Status: Closed (fixed)">#3437434: Composer (next major) no longer works after 11.x updated to Symfony 7</a></span>, we needed to change the way that <code>drush</code> was brough. Drush is not a hard dependency to run the D10+ pipelines, so we only try after the main install as a nice-to-have and if there are no conflicts when installing it, otherwise we continue and just show a message.</p> <p>As suggested in this thread (<a href="https://drupal.slack.com/archives/CGKLP028K/p1712896223206239?thread_ts=1712734444.852759&amp;cid=CGKLP028K">https://drupal.slack.com/archives/CGKLP028K/p1712896223206239?thread_ts=1712734444.852759&amp;cid=CGKLP028K</a>), it makes sense to require it with <code>--update-with-all-dependencies (-W)</code> to limit the number of conflicts as the lock file exists at that point.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p><a href="https://git.drupalcode.org/project/tfa/-/jobs/1308481">https://git.drupalcode.org/project/tfa/-/jobs/1308481</a> vs <a href="https://git.drupalcode.org/project/tfa/-/jobs/1308822">https://git.drupalcode.org/project/tfa/-/jobs/1308822</a></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add the parameter.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>MR.</p>
issue