You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v2.4, the new groupings "Direct dependencies:" and "Transitive dependencies:"added for the outdated command are being added also for the info command.
In the PR #10779 it states it is for the outdated command, so I assume this is a bug.
Indeed it broke my continuous integration, since I use composer info to retrieve and parse the list of all the packages:
PACKAGES="$(composer info --name-only --no-dev)"if [ -n"$PACKAGES" ];thenforpackagein$PACKAGESdo# ... Do something with the packagedonefi
Now it produces an error, since it encounters the string "Direct dependencies:" and it treats it like a package too, making the process fail.
Debug
When I run this command:
composer info --name-only --no-dev
I get the following output:
Direct dependencies:
graphql-api/plugin-utils
Transitive dependencies:
symfony/var-exporter
symfony/yaml
* Fix show command showing the split of direct/transitive deps from outdated, fixes#10999
* Fix a few minor edge cases in show command, add tests for show and outdated commands
emahorvat52
pushed a commit
to emahorvat52/composer
that referenced
this issue
Feb 3, 2023
* Fix show command showing the split of direct/transitive deps from outdated, fixescomposer#10999
* Fix a few minor edge cases in show command, add tests for show and outdated commands
Explanation
Since v2.4, the new groupings
"Direct dependencies:"
and"Transitive dependencies:"
added for theoutdated
command are being added also for theinfo
command.In the PR #10779 it states it is for the
outdated
command, so I assume this is a bug.Indeed it broke my continuous integration, since I use
composer info
to retrieve and parse the list of all the packages:Now it produces an error, since it encounters the string
"Direct dependencies:"
and it treats it like a package too, making the process fail.Debug
When I run this command:
I get the following output:
And I expected this to happen:
The text was updated successfully, but these errors were encountered: