composer/composer — Issue #130: Installation of custom repositories doesn't install required dependencies
Author: marijn
Created: 2011-11-23 01:31:53+00:00
State: open

Today I tried to install `AsseticBundle` with Composer. Since a `composer.json` file was missing I first tried to install it with a custom repository before submitting a PR.

``` json
{
"name": "example/example",
"description": "Example - Web Application",
"homepage": "https://github.com/example/example",
"authors": [
{
"name": "John Doe",
"email": "john@example.com",
"homepage": "http://example.com/"
}
],
"repositories": {
"symfony-unofficial": {
"package": {
"name": "symfony/assetic-bundle",
"version": "1.0.2-dev",
"dist": {
"url": "https://github.com/symfony/AsseticBundle/zipball/d4d9054c20326fa42af1375c447112cde371c0c0",
"type": "zip"
},
"source": {
"url": "git@github.com:symfony/AsseticBundle.git",
"type": "git",
"reference": "d4d9054c20326fa42af1375c447112cde371c0c0"
}
}
},
"assetic-unofficial": {
"package": {
"name": "assetic/assetic",
"version": "1.0.3-dev",
"dist": {
"url": "https://github.com/kriswallsmith/assetic/zipball/master",
"type": "zip"
},
"source": {
"url": "git@github.com:kriswallsmith/assetic.git",
"type": "git",
"reference": "master"
}
}
}
},
"require": {
"php": ">=5.3.0",
"symfony/symfony": "2.1.0-dev",
"symfony/assetic-bundle": ">=1.0.2-dev"
}
}
```

I would expect this to install the following:

* `symfony/symfony`
* `symfony/assetic-bundle`
* `assetic/assetic`

However, `assetic/assetic` is not installed.

I'm using `composer-1.0.0-dev`

I'll gladly provide more information.