Closed greg0ire closed 7 years ago
We should also add conflicts
version information.
What do you mean by that?
We don't use the conflict section to check the optional dependencies (defined under require-dev
) are compatible.
Not sure that would be a great idea. If dependencies are optional and one of them is installed, how are we sure it's installed in order to be used with sonata cache?
ping @core23
ping @core23 @jordisala1991, WDYT?
Even if you dont add to conflicts, restriction will made you not be able to install older versions right? Not sure if its useful to add conflict section in this case.
The problem is, that we run our tests with higher versions of optional dependencies. If a someone uses a lower version of a dependency, there could be some problems with it.
Completely right, forgot about that case.
So when you declare dev-dependencies it doesn't block anyone using this bundle from installing a lower dependency, but when you put that on conflicts, you ensure that a higher dep gets installed. Is that right?
If this is the case, then 👍 to add conflicts.
Edited: only for the suggested packages or for everything?
@core23 please review again
@sonata-project/contributors please merge?
Squash or merge commit?
Regular merge please :)
Thanks @greg0ire :)
Only test dependencies were dropped, so this is pedantic.