Skip to content

v6.0.7 broke Composer resolution — >=7.0,<=12.0 excludes illuminate/* patch releases #644

@emanueljacob

Description

@emanueljacob

Summary

Version v6.0.7 changed the illuminate/* dependency constraints from ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 to >=7.0,<=12.0. This is a breaking regression that prevents installation with any illuminate/* version above 12.0.0 (e.g. 12.1.0, 12.56.0, etc.).

Root Cause

The constraint >=7.0,<=12.0 caps the maximum resolved version at exactly 12.0.0. Any patch or minor release (12.0.1, 12.5.0, 12.56.0, …) is excluded.

The previous constraint ^12.0 correctly resolved to >=12.0.0, <13.0.0, allowing all 12.x releases.

Constraint 12.0.0 12.0.1 12.56.0
^12.0 (before)
<=12.0 (after)

Reproduction

composer require kalnoy/nestedset:^6.0.7 laravel/framework:^12.1

Fails with:

Your requirements could not be resolved to an installable set of packages.

Downgrading to v6.0.6 resolves the issue.

Suggested Fix

Either revert to the previous constraints:

"illuminate/database": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/events": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"

Or, if a simplified range is preferred, use <13.0 instead of <=12.0:

"illuminate/database": ">=7.0,<13.0",
"illuminate/events": ">=7.0,<13.0",
"illuminate/support": ">=7.0,<13.0"

Workaround

Pin to the previous version:

"kalnoy/nestedset": "^6.0.6"

Note: Make sure to also add 6.0.7 to the exclude list or use the exact constraint 6.0.6 to prevent Composer from picking up the broken release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions