Thanks to visit codestin.com
Credit goes to github.com

Skip to content

composer show | grep xxx has bad output on snapshot vs 2.6.6 #11801

@bilogic

Description

@bilogic

My composer.json:

...replace me...

Output of composer diagnose:

Checking composer.json: WARNING
require.calebporzio/parental : unbound version constraints (*) should be avoided
require.intervention/image : unbound version constraints (*) should be avoided
Checking platform settings: OK
Checking git settings: OK git version 2.34.1
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking Composer version: OK
Checking Composer and its dependencies for vulnerabilities: WARNING
Could not find Composer's installed.json, this must be a non-standard Composer installation.
Composer version: 2.7-dev+4e5be9ee7d924d8efc58d676439b0c7bd18a9ce4
PHP version: 8.1.27
PHP binary path: /usr/bin/php8.1
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022
cURL version: 7.81.0 libz 1.2.11 ssl OpenSSL/3.0.2
zip: extension present, unzip present, 7-Zip not available

When I run this command:

$ composer show | grep laravel

I get the following bad output:

$ composer show | grep laravel
laravel-debugbar/tree/v3.9.2barryvdh/laravel-debugbar                     v3.9.2    PHP Debugbar integration for Laravel
laravel-pmakebilogic/pmake                                 10.x-dev  Enhanced Laravel make:* commands
filament/spatie-laravel-media-library-plugin  v3.1.47   Filament support for `spatie/laravel-medialibrary`.
laravel-nova-theme-responsive/tree/mastergregoriohc/laravel-nova-theme-responsive      v0.8.1    A Laravel Nova responsive theme.
laravel/tree/v3.18.2honeybadger-io/honeybadger-laravel            v3.18.2   Honeybadger Laravel integration
laravel/tree/v0.6.11inertiajs/inertia-laravel                     v0.6.11   The Laravel adapter for Inertia.js.
laravel-packager/tree/2.9.0jeroen-g/laravel-packager                     2.9.0     A cli tool for creating Laravel packages.
laravel/foliolaravel/folio                                 v1.1.5    Page based routing for Laravel.
laravel/frameworklaravel/framework                             v10.40.0  The Laravel Framework.
laravel/nova                                  4.26.3    A wonderful administration interface for Laravel.
laravel/pennantlaravel/pennant                               v1.5.1    A simple, lightweight library for managing feature flags.
laravel/prompts/tree/v0.1.15laravel/prompts                               v0.1.15  
laravel/saillaravel/sail                                  v1.27.0   Docker files for running a basic Laravel application.
laravel/sanctumlaravel/sanctum                               v3.3.3    Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closurelaravel/serializable-closure                  v1.3.3    Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/socialitelaravel/socialite                             v5.11.0   Laravel wrapper around OAuth 1 & OAuth 2 libraries.
laravel/tinker/tree/v2.9.0laravel/tinker                                v2.9.0    Powerful REPL for the Laravel framework.
laravel/ui/tree/v4.3.0laravel/ui                                    v4.3.0    Laravel UI utilities and presets.
laravel-translations-checker/tree/v0.7larswiegers/laravel-translations-checker      v0.7      Make sure your laravel translations are checked and are included in all languages.
laravel-failed-job-monitor/tree/4.2.1spatie/laravel-failed-job-monitor             4.2.1     Get notified when a queued job fails
laravel-google-calendar/tree/3.7.1spatie/laravel-google-calendar                3.7.1     Manage events on a Google Calendar
laravel-ignitionspatie/laravel-ignition                       2.4.1     A beautiful error page for Laravel applications.
laravel-markdown/tree/2.4.2spatie/laravel-markdown                       2.4.2     A highly configurable markdown renderer and Blade component for Laravel
laravel-medialibrary/tree/10.15.0spatie/laravel-medialibrary                   10.15.0   Associate files with Eloquent models
laravel-package-tools/tree/1.16.2spatie/laravel-package-tools                  1.16.2    Tools for creating Laravel packages
laravel-permission/tree/5.11.1spatie/laravel-permission                     5.11.1    Permission handling for Laravel 6.0 and up
laravel-ray/tree/1.33.1spatie/laravel-ray                            1.33.1    Easily debug Laravel apps
laravel-tail/tree/4.4.2spatie/laravel-tail                           4.4.2     Easily tail application logs
laravel-translation-loader/tree/2.7.6spatie/laravel-translation-loader             2.7.6     Store your language lines in the database, yaml or other sources
laravel-webhook-client/tree/3.2.0spatie/laravel-webhook-client                 3.2.0     Receive webhooks in Laravel apps

Instead, I expected this to happen:

$ composer --version
Composer version 2.6.6 2023-12-08 18:32:26
$ composer show | grep laravel
barryvdh/laravel-debugbar                     v3.9.2    PHP Debugbar integration for Laravel
filament/spatie-laravel-media-library-plugin  v3.1.47   Filament support for `spatie/laravel-medialibrary`.
gregoriohc/laravel-nova-theme-responsive      v0.8.1    A Laravel Nova responsive theme.
honeybadger-io/honeybadger-laravel            v3.18.2   Honeybadger Laravel integration
inertiajs/inertia-laravel                     v0.6.11   The Laravel adapter for Inertia.js.
jeroen-g/laravel-packager                     2.9.0     A cli tool for creating Laravel packages.
laravel/folio                                 v1.1.5    Page based routing for Laravel.
laravel/framework                             v10.40.0  The Laravel Framework.
laravel/nova                                  4.26.3    A wonderful administration interface for Laravel.
laravel/pennant                               v1.5.1    A simple, lightweight library for managing feature flags.
laravel/prompts                               v0.1.15  
laravel/sail                                  v1.27.0   Docker files for running a basic Laravel application.
laravel/sanctum                               v3.3.3    Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure                  v1.3.3    Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/socialite                             v5.11.0   Laravel wrapper around OAuth 1 & OAuth 2 libraries.
laravel/tinker                                v2.9.0    Powerful REPL for the Laravel framework.
laravel/ui                                    v4.3.0    Laravel UI utilities and presets.
larswiegers/laravel-translations-checker      v0.7      Make sure your laravel translations are checked and are included in all languages.
spatie/laravel-failed-job-monitor             4.2.1     Get notified when a queued job fails
spatie/laravel-google-calendar                3.7.1     Manage events on a Google Calendar
spatie/laravel-ignition                       2.4.1     A beautiful error page for Laravel applications.
spatie/laravel-markdown                       2.4.2     A highly configurable markdown renderer and Blade component for Laravel
spatie/laravel-medialibrary                   10.15.0   Associate files with Eloquent models
spatie/laravel-package-tools                  1.16.2    Tools for creating Laravel packages
spatie/laravel-permission                     5.11.1    Permission handling for Laravel 6.0 and up
spatie/laravel-ray                            1.33.1    Easily debug Laravel apps
spatie/laravel-tail                           4.4.2     Easily tail application logs
spatie/laravel-translation-loader             2.7.6     Store your language lines in the database, yaml or other sources
spatie/laravel-webhook-client                 3.2.0     Receive webhooks in Laravel apps

In case the above is not clear, for the latest snapshot of composer, if I grep the output, the package name "duplicates", causing the output to be unreadable. This isn't the case in 2.6.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions