Problem/Motivation

When spinning up a local environment for development of the Label Help module, we now see a warning upon ddev start due to changes in how Gitlab Templates does symlinking, and therefore presumably also how ddev symlink-project works.


WARNING: The list of project files and folders has been derived here, because the environment variable PROJECT_FILES is empty.
Array
(
    [2] => .ddev
    [3] => .editorconfig
    [5] => .gitattributes
    [6] => .gitignore
    [7] => .gitlab-ci.yml
    [8] => .prettierignore
    [9] => .prettierrc.json
    [10] => .vscode
    [11] => LICENSE.txt
    [12] => README.md
    [13] => composer.json
    [14] => composer.lock
    [15] => config
    [16] => css
    [17] => label_help.info.yml
    [18] => label_help.libraries.yml
    [19] => label_help.module
    [20] => modules
    [21] => node_modules
    [22] => phpcs.xml.dist
    [23] => phpstan-baseline.neon
    [24] => phpstan.neon
    [25] => recipes
    [26] => templates
    [27] => tests
)

This may not be accurate and to avoid this warning, at the start of your customized composer script execute the following command:

export PROJECT_FILES=$(ls -A)

See change record https://www.drupal.org/node/3500320 for more details
************************************************************************************************************************

Creating symlinks in /var/www/html/web/modules/custom/label_help pointing back to files in /var/www/html
.ddev
.editorconfig
.gitattributes
.gitignore
.gitlab-ci.yml
.prettierignore
.prettierrc.json
.vscode
LICENSE.txt
README.md
composer.json
composer.lock
config
css
label_help.info.yml
label_help.libraries.yml
label_help.module
modules
node_modules
phpcs.xml.dist
phpstan-baseline.neon
phpstan.neon
recipes
templates
tests

Proposed resolution

Update ddev and ddev-drupal-contrib scripts to latest version, in hopes that this remedies the warning.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork label_help-3508273

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Assigned: Unassigned » jwilson3
jwilson3’s picture

The symlink-project command now completely errors out with the following message:

 ddev symlink-project
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4069  100  4069    0     0   6772      0 --:--:-- --:--:-- --:--:--  6781
PHP Fatal error:  Uncaught RuntimeException: Positional parameters are no longer used. Ignoring label_help in /var/www/html/symlink_project.php:36
Stack trace:
#0 {main}
  thrown in /var/www/html/symlink_project.php on line 36

Fatal error: Uncaught RuntimeException: Positional parameters are no longer used. Ignoring label_help in /var/www/html/symlink_project.php:36
Stack trace:
#0 {main}
  thrown in /var/www/html/symlink_project.php on line 36

  • jwilson3 committed 7e9a656f on 2.0.x
    Issue #3508273 by jwilson3: Update ddev-drupal-contrib to 1.1.5
    

  • jwilson3 committed 51916821 on 2.0.x
    Issue #3508273 by jwilson3: set executable bit on ddev core-version...
jwilson3’s picture

Assigned: jwilson3 » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.