Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kartagis opened this issue Mar 8, 2024 · 3 comments
Labels
bug Something isn't working php unable to replicate

Comments

@kartagis
Copy link

kartagis commented Mar 8, 2024

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

@kartagis kartagis added the bug Something isn't working label Mar 8, 2024
@pirog pirog transferred this issue from lando/lando Mar 8, 2024
@rubenvarela
Copy link
Collaborator

% echo $SHELL
/bin/zsh
% /bin/zsh --version
zsh 5.8.1 (x86_64-apple-darwin22.0)
% composer --version
Composer version 2.7.1 2024-02-09 15:26:28
% composer show --no-dev --direct --name-only|xargs
composer/installers cweagans/composer-patches drupal/core-composer-scaffold drupal/core-recommended drush/drush oomphinc/composer-installers-extender symfony/filesystem
% ls -lhA .lando.yml
-rw-r--r--@ 1 ruben.varela  513   320B Mar  9 12:14 .lando.yml

On ZSH, on composer 2.7.1, on my side I can't recreate it.

No oh-my-zsh though.

@reynoldsalec
Copy link
Member

reynoldsalec commented Mar 15, 2024

I'm on zsh as well, composer 2.6.6, haven't been able to recreate.

Trying hard to think of a mechanism here that would cause that behavior. Does the same thing happen on other projects with .lando.yml? Does it happen if you run the command without |xargs? @kartagis

@AaronFeledy
Copy link
Member

This seems like something with the environment such as an alias, function, or oh-my-zsh plugin that's responding to the presence of the .lando.yml when you're running a composer command. Are you using any plugins like this? https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/lando

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working php unable to replicate
Projects
None yet
Development

No branches or pull requests

5 participants