atoum / AtoumBundle

This bundle provides a simple integration of atoum into Symfony 2.
MIT License
44 stars 25 forks source link

Unable to install with composer and minimum-stability > "dev" #25

Closed marmotz closed 11 years ago

marmotz commented 11 years ago

Here is my project's composer.json file:

{
    "require-dev": {
        "atoum/atoum-bundle" : "dev-master",
    },
    "minimum-stability": "alpha"
}

Impossible to install AtoumBundle:

Your requirements could not be resolved to an installable set of packages.
   Problem 1
     - Installation request for atoum/atoum-bundle dev-master -> satisfiable by atoum/atoum-bundle dev-master.
     - atoum/atoum-bundle dev-master requires atoum/atoum dev-master -> no matching package found.

Obviously, if I set "dev" to minimum-stability, all is working...

I tried to update AtoumBundle's composer.json like this, but nothing change...

{
    "require": {
        "atoum/atoum": "@dev"
    }
}

So, the solutions I found was to add "atoum/atoum": "@dev" in my composer.json or put minimum-stability to "dev". The second solution does not suit me, so I do the first one...

If you found an other solution, could you please implement this. Else you should update documentation.

stephpy commented 11 years ago

Updating locally your AtoumBundle composer.json would not change anything because it referes to remote composer.json file.

It would be great to works with minimum-stability : alpha ... really ... but a big part of bundles don't tag them bundles, you'll have a lot of problems i guess with this minimum-stability tag ;)

But if we found a solution, we'll implement this on atoum bundle composer.json. Thanks for this return.

marmotz commented 11 years ago

Yes, sure, i forgot to tell that I add a "repository" in composer.json to test it :)

stephpy commented 11 years ago

I guess the ROOT composer.json is able to change the minimum-stability requirement but not childs, it would be too easy to have minimum-stability: release and require a package which make a call to a repository@dev

Imo it's a normal behavior. atoum is not released, by this way, in your root application, you have to require it with @dev tag or the minimum-stability to dev.

marmotz commented 11 years ago

If it's the standard way, so you should write it in README :)

stephpy commented 11 years ago

You are right :)