Skip to content

Composer Installer does not allow specifying LTS version #10682

@BrandonKahre

Description

@BrandonKahre

With the newest 2.3.X releases breaking on systems running older PHP versions, it would be nice to be able to programmatically install the latest LTS release. Using the installer tool provided, when I run this command:

php installer.php --version=2.2.x

I get the following output:

The defined install version (2.2.x) does not match release pattern.

And I expected this to happen:
The latest 2.2.X LTS version to be installed (currently 2.2.10).

Using the latest installer tool:

❯ php -r "echo hash_file('sha384', 'installer.php') . PHP_EOL;"
906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8

Current workaround is to pin composer to the 2.2.10 version specifically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions