sonata-project / dev-kit

Development kit of the Sonata-Project
https://master-7rqtwti-ptm4dx6rjpjko.eu-5.platformsh.site/
42 stars 42 forks source link

Composer: Circular dependencies version target issue #95

Closed soullivaneuh closed 4 years ago

soullivaneuh commented 8 years ago

Travis job: https://travis-ci.org/sonata-project/SonataBlockBundle/jobs/131844587#L222

In a nutshell, block-bundle 4.x can't be tested with stable version of admin-bundle because this one require block-bundle 3.x stable.

We can't bump version constraint on a stable version of admin-bundle, we have to found a trick to force the test.

What is your suggestions @sonata-project/contributors?

jordisala1991 commented 8 years ago

SonataBlockBundle requires SonataAdminBundle just for 2 things:

It is a bit weird to have a circular dependency. I think there are ways to break this circular dependency like:

I don't really know how to do it or which one is the best solution, but it's strange depending on some bundle that already depends on you.

soullivaneuh commented 8 years ago

@jordisala1991 Indeed we have to work on things like that. :+1:

But this is a discussion that have to be done on concerned bundles for next minor on a BC way.

Maybe this will solve Travis itself, but for know, we have to found a trick to test code already here and stable.

VincentLanglet commented 4 years ago

There is no sonata-admin dependency in https://github.com/sonata-project/SonataBlockBundle/blob/4.x/composer.json