Skip to content

[2.48] Composer Normalize identification issues #1504

@llaville

Description

@llaville

I've tried both composer dependency install and PHAR distribution, and have found identification problems.

Composer dependency installation

After running two following commands

composer require --dev ergebnis/composer-normalize
composer config allow-plugins.ergebnis/composer-normalize true

My composer.json file is modified as expected

diff --git a/composer.json b/composer.json
index 7ad2287..da75786 100644
--- a/composer.json
+++ b/composer.json
@@ -17,7 +17,8 @@
         "composer-runtime-api": "^2.0"
     },
     "require-dev": {
-        "bamarni/composer-bin-plugin": "^1.8"
+        "bamarni/composer-bin-plugin": "^1.8",
+        "ergebnis/composer-normalize": "^2.48"
     },
     "minimum-stability": "stable",
     "prefer-stable": true,
@@ -28,7 +29,8 @@
     },
     "config": {
         "allow-plugins": {
-            "bamarni/composer-bin-plugin": true
+            "bamarni/composer-bin-plugin": true,
+            "ergebnis/composer-normalize": true
         },
         "optimize-autoloader": true,
         "sort-packages": true

Confirmed by command composer show --direct that prints

bamarni/composer-bin-plugin 1.8.2  No conflicts for your bin dependencies
ergebnis/composer-normalize 2.48.2 Provides a composer plugin for normalizing composer.json.

When I run first try on my local package with command composer normalize --dry-run, I got the first part of screenshot

Image

Other parts are context identification (Composer and PHP versions used)

NB that both commands composer --version and composer normalize --version gave same results : No plugin identification is displayed

And the result of --dry-run did not print plugin version too !

PHAR distribution from https://github.com/ergebnis/composer-normalize/releases/download/2.48.2/composer-normalize.phar

Image

The PHAR distrib uses an outdated version of Composer (at least, not those available on my local system)

And this time the PHAR copy print the plugin version when running (for example) a --dry-run test (compared to standard Composer installation)

Image

Expected results

It would be cool to have Plugin version identification in all distribution installation

Metadata

Metadata

Assignees

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