Skip to content

Revisit the way packs work - always unpack them #645

Closed
@nicolas-grekas

Description

@nicolas-grekas

Packs create issues like symfony/orm-pack#25

For sure, we don't want to maintain versions of packs each time a dependent is bumped.
The current solution is like: use packs until it breaks for you, then unpack.

Instead, I'd like to propose the following:

  • keep using * as the version constraint for dependents in packs,
  • auto-unpack when installing a pack,
  • auto-replace the * by the current version - compute this "current version" by borrowing what composer does when running compose require without a version constraint (when the package is already found in the main composer.json, skip this),
  • additionally, also unpack require-dev,
  • (skip "conflict" and/or "replace", that's too much work, better consider them unsupported in packs, until one contributes the logic at least?).

Related to symfony/orm-pack#26, #370, #371, #563

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