-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop version constraint to allow future package releases (or abandon package) #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ppl should unpack their deps for greater control.
how should that happen? is there any tool or explicit flow to do that? if is just "people should" then "people won't" |
Sure, flex provides an "unpack" composer command exactly for this purpose. |
Should flex unpack automatically while installing the pack packages? |
This is a big issue if you don't unpack, as it means projects will silently upgrade to the new major version. This means that this pack does not follow semver at all. |
I think that my proposal of
should solve the issue... |
indeed |
if the pack has a |
For those who people that, should unpack their packs for greater control: http://fabien.potencier.org/symfony4-unpack-the-packs.html |
Reverted in #28 |
@nicolas-grekas I did try this morning a composer-upgrade of an app from sf 4.4.5 to 4.4.11. ps: I now found out about recent changes which make packs be unpacked oob on app install, which is a behaviour I am happy with. If my understanding is correct, that is the current solution to the problem of pack versioning vs. pack-deps versioning. It seems that pre-existing sf apps are not taken into account correctly though...) |
I can immagine that this is going to be a bit controversial, but I'm not sure if this package was a good idea.
When users use
symfony/orm-pack
they get some doctrine packages as "doctrine/doctrine-migrations-bundle", versions ^1. or ^2.0,When doctrine/doctrine-migrations-bundle 3.0 will be released (or orm 3.0 or dbal 2.0), the only way to allow the upgrade it is to allow it in this package, as example defining
doctrine/doctrine-migrations-bundle: ^1.3|^2.0|3.0
(an example was c8b2fd4)But since that was a minor/bigfix release, any user that had installed
symfony/orm-pack
got automatically installed (as bugfix)doctrine/doctrine-migrations-bundle 2.0
that was a major release with BC breaks. This already was reported in #15, I'm not aware of packs being unpacked by composer... is that true?My proposal to remove the version constraint has the same disadvantages, but does not oblige the doctrine team to keep updated this repo each time there is a major release on doctrine.
Another solution is that each time a major release is added in the constraints, this package should release a major release, in this way we avoid delivering unexpected major releases. Similar as #18
A third solution (that does not exclude the previous one) is to deprecate this package and let users install what do they need.