Skip to content

Composer/Packagist: support platform compatibility during lookup #2355

@rarkins

Description

@rarkins

As described in #1357 (comment), we need to support restricting updates according to the platform version, e.g. php <= 5.6.

Because our lookups are done independently of composer, we need to reproduce the logic that composer uses to determine if a newer version is compatible.

Steps:

  1. When parsing the composer.json file, determine if it includes a php field under platform

  2. Pass the php restriction to the packagist datasource lookup

  3. Packagist datasource should return only compatible versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto:reproductionA minimal reproduction is necessary to proceeddatasource:packagisthelp wantedHelp is needed or welcomed on this issuemanager:composerComposer (PHP) package managerpriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of othersstatus:requirementsFull requirements are not yet known, so implementation should not be started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions