lando / lando/php

composer show --no-dev --direct --name-only | xargs trims first letter of each package when there is a .lando.yml

Open
#106 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug php unable to replicate
Dominant language
Dockerfile
Stars
20
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I came across this by accident but this is the behaviour I'm getting.

➜  dev-ef2-drupal-installer git:(master) ✗ ls -la
total 880
drwxr-xr-x@ 14 tolgaozses  staff     448  8 Mar 20:47 .
drwxr-xr-x@ 21 tolgaozses  staff     672  8 Mar 20:36 ..
-rw-r--r--   1 tolgaozses  staff     357  8 Mar 20:40 .editorconfig
drwxr-xr-x@ 12 tolgaozses  staff     384  8 Mar 20:36 .git
-rw-r--r--   1 tolgaozses  staff    4034  8 Mar 20:40 .gitattributes
-rw-r--r--@  1 tolgaozses  staff    1355  8 Mar 20:40 .gitignore
-rw-r--r--@  1 tolgaozses  staff     405  8 Mar 20:38 .lando.yml
-rw-r--r--@  1 tolgaozses  staff    7595  8 Mar 20:39 composer.json
-rw-r--r--   1 tolgaozses  staff  419831  8 Mar 20:39 composer.lock
-rw-r--r--@  1 tolgaozses  staff     321  8 Mar 20:36 load.environment.php
drwxr-xr-x@  3 tolgaozses  staff      96  8 Mar 20:36 patches
drwxr-xr-x@  3 tolgaozses  staff      96  8 Mar 20:36 scripts
drwxr-xr-x  42 tolgaozses  staff    1344  8 Mar 20:40 vendor
drwxr-xr-x@ 22 tolgaozses  staff     704  8 Mar 20:40 web
➜  dev-ef2-drupal-installer git:(master) ✗ composer show --no-dev --direct --name-only|xargs
omposer/installers weagans/composer-patches rupal/admin_toolbar rupal/antibot rupal/background_image_formatter rupal/better_exposed_filters rupal/blockgroup rupal/cacheflush rupal/clientside_validation rupal/core-composer-scaffold rupal/core-project-message rupal/core-recommended rupal/crop rupal/ctools rupal/devel rupal/ds rupal/easy_breadcrumb rupal/editor_advanced_link rupal/entity_clone rupal/entity_reference_revisions rupal/eu_cookie_compliance rupal/field_group rupal/fixed_block_content rupal/focal_point rupal/gin rupal/gin_login rupal/imce rupal/ip_anon rupal/link_class rupal/linkit rupal/mailsystem rupal/masquerade rupal/menu_block rupal/menu_link_attributes rupal/metatag rupal/mimemail rupal/paragraphs rupal/paragraphs_asymmetric_translation_widgets rupal/pathauto rupal/rabbit_hole rupal/redirect rupal/restui rupal/robots_dtap rupal/schema_metatag rupal/search_api rupal/simple_sitemap rupal/svg_image rupal/token rupal/twig_tweak rupal/video_embed_field rupal/views_infinite_scroll rupal/views_row_insert rupal/vitals rupal/webform rupal/yoast_seo rush/drush f2/ef2_admin f2/ef2_drupal_installation_profile lluminate/collections aravel/helpers lucas/phpdotenv
➜  dev-ef2-drupal-installer git:(master) ✗ mv .lando.yml ~
➜  dev-ef2-drupal-installer git:(master) ✗ composer show --no-dev --direct --name-only|xargs
composer/installers cweagans/composer-patches drupal/admin_toolbar drupal/antibot drupal/background_image_formatter drupal/better_exposed_filters drupal/blockgroup drupal/cacheflush drupal/clientside_validation drupal/core-composer-scaffold drupal/core-project-message drupal/core-recommended drupal/crop drupal/ctools drupal/devel drupal/ds drupal/easy_breadcrumb drupal/editor_advanced_link drupal/entity_clone drupal/entity_reference_revisions drupal/eu_cookie_compliance drupal/field_group drupal/fixed_block_content drupal/focal_point drupal/gin drupal/gin_login drupal/imce drupal/ip_anon drupal/link_class drupal/linkit drupal/mailsystem drupal/masquerade drupal/menu_block drupal/menu_link_attributes drupal/metatag drupal/mimemail drupal/paragraphs drupal/paragraphs_asymmetric_translation_widgets drupal/pathauto drupal/rabbit_hole drupal/redirect drupal/restui drupal/robots_dtap drupal/schema_metatag drupal/search_api drupal/simple_sitemap drupal/svg_image drupal/token drupal/twig_tweak drupal/video_embed_field drupal/views_infinite_scroll drupal/views_row_insert drupal/vitals drupal/webform drupal/yoast_seo drush/drush ef2/ef2_admin ef2/ef2_drupal_installation_profile illuminate/collections laravel/helpers vlucas/phpdotenv
➜  dev-ef2-drupal-installer git:(master) ✗ ls -la
total 872
drwxr-xr-x@ 13 tolgaozses  staff     416  8 Mar 20:49 .
drwxr-xr-x@ 21 tolgaozses  staff     672  8 Mar 20:36 ..
-rw-r--r--   1 tolgaozses  staff     357  8 Mar 20:40 .editorconfig
drwxr-xr-x@ 12 tolgaozses  staff     384  8 Mar 20:36 .git
-rw-r--r--   1 tolgaozses  staff    4034  8 Mar 20:40 .gitattributes
-rw-r--r--@  1 tolgaozses  staff    1355  8 Mar 20:40 .gitignore
-rw-r--r--@  1 tolgaozses  staff    7595  8 Mar 20:39 composer.json
-rw-r--r--   1 tolgaozses  staff  419831  8 Mar 20:39 composer.lock
-rw-r--r--@  1 tolgaozses  staff     321  8 Mar 20:36 load.environment.php
drwxr-xr-x@  3 tolgaozses  staff      96  8 Mar 20:36 patches
drwxr-xr-x@  3 tolgaozses  staff      96  8 Mar 20:36 scripts
drwxr-xr-x  42 tolgaozses  staff    1344  8 Mar 20:40 vendor
drwxr-xr-x@ 22 tolgaozses  staff     704  8 Mar 20:40 web

I'm on macOS Sonoma 14.3.1 with zsh. I'm also using oh-my-zsh if it helps. Composer is on the host and version is 2.7.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the command in a project containing .lando.yml, then repeat after moving that file as shown. Start by tracing how the Lando PHP plugin handles Composer command execution and environment setup; done means composer show --no-dev --direct --name-only | xargs preserves the first character of every package name in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.