Skip to content

Locking with incompatible constraints #473

@thewilkybarkid

Description

@thewilkybarkid

Similar to #412, which resolved cases where a package doesn't exist in the extra.symfony.require constraint, I'm trying to have one package not match the constraint, eg:

{
    "require": {
        "symfony/framework-bundle": "^4.0",
        "symfony/translation": "^4.1",
    },
    "extra": {
        "symfony": {
            "require": "~4.0.0"
        }
    }
}

which results in

    - The requested package symfony/translation ^4.1 exists as symfony/translation[4.0.x-dev, v4.0.0, v4.0.0-BETA1, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.0-RC1, v4.0.0-RC2, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9] but these are rejected by your constraint.

Would you expect this to be possible?

(Refs libero/content-api-bundle#17 (comment))

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