Unify symlink approach, allow folder argument
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3423236. --> Reported by: [fjgarlin](https://www.drupal.org/user/2495842) Related to !138 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Some issues like <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates/issues/3422323" title="Status: Closed (fixed)">#3422323: Improve CSPELL</a></span> needed a workaround purely because we are using symlinks. This was done that way from the very beginning to build the project, but maybe there is a better way now.</p> <p>For Drupal 7 we have copied the files when we actually need the symlinks.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>See the struggle 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/3422323" title="Status: Closed (fixed)">#3422323: Improve CSPELL</a></span></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ol> <li>Fix Drupal 7 by creating the symlinks in the correct folder</li> <li>Separately, investigate a re-usable code snippet to copy all files, which can be added just to the specifc jobs that need it</li> </ol> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Investigation, testing + MR</p> > Related issue: [Issue #3422323](https://www.drupal.org/node/3422323) > Related issue: [Issue #3397699](https://www.drupal.org/node/3397699) > Related issue: [Issue #3389338](https://www.drupal.org/node/3389338)
issue