{"action":"created","issue":{"url":"https://api.github.com/repos/composer/satis/issues/254","labels_url":"https://api.github.com/repos/composer/satis/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/composer/satis/issues/254/comments","events_url":"https://api.github.com/repos/composer/satis/issues/254/events","html_url":"https://github.com/composer/satis/issues/254","id":111850388,"number":254,"title":"Package dependencies downloading many versions","user":{"login":"oligriffiths","id":1246671,"avatar_url":"https://avatars.githubusercontent.com/u/1246671?v=3","gravatar_id":"","url":"https://api.github.com/users/oligriffiths","html_url":"https://github.com/oligriffiths","followers_url":"https://api.github.com/users/oligriffiths/followers","following_url":"https://api.github.com/users/oligriffiths/following{/other_user}","gists_url":"https://api.github.com/users/oligriffiths/gists{/gist_id}","starred_url":"https://api.github.com/users/oligriffiths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligriffiths/subscriptions","organizations_url":"https://api.github.com/users/oligriffiths/orgs","repos_url":"https://api.github.com/users/oligriffiths/repos","events_url":"https://api.github.com/users/oligriffiths/events{/privacy}","received_events_url":"https://api.github.com/users/oligriffiths/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T15:05:22Z","updated_at":"2015-10-16T15:08:26Z","closed_at":null,"body":"Hi\r\n\r\nHere's my satis.json:\r\n\r\n```\r\n{\r\n    \"name\": \"Composer Package Host\",\r\n    \"homepage\": \"http://localhost:8080\",\r\n    \"repositories\": [\r\n        {\r\n            \"type\": \"composer\",\r\n            \"url\": \"https://packagist.org\"\r\n        }\r\n    ],\r\n    \"require\": {\r\n        \"illuminate/html\": \"~5.0\"\r\n    },\r\n    \"require-dependencies\": true,\r\n    \"archive\": {\r\n        \"directory\": \"dist\",\r\n        \"format\": \"tar\",\r\n        \"skip-dev\": true\r\n    },\r\n    \"minimum-stability\": \"stable\"\r\n}\r\n```\r\n\r\nThis results in 60MB and 174 packages downloaded into the `public/dist` folder. There are multiple versions of each packages dependencies. Is there a way to have satis not download all previous dependency versions and only download the most recent that matches the version requirements? \r\n\r\nIt seems that `illuminate/html` requires `\"illuminate/http\": \"~5.0\"`, which results in the following versions being cached:\r\n\r\n```\r\nv5.1.20, v5.1.16, v5.1.13, v5.1.8, v5.1.6, v5.1.2, v5.1.1, v5.0.33, v5.0.28, v5.0.26, v5.0.25, v5.0.22, v5.0.4, v5.0.0\r\n```\r\n\r\nIs there a way to have satis cache only the latest available package that matches the version requirements, e.g. `v5.1.20`?\r\n\r\nThanks\r\n\r\nOli"},"comment":{"url":"https://api.github.com/repos/composer/satis/issues/comments/148741874","html_url":"https://github.com/composer/satis/issues/254#issuecomment-148741874","issue_url":"https://api.github.com/repos/composer/satis/issues/254","id":148741874,"user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T15:08:26Z","updated_at":"2015-10-16T15:08:26Z","body":"No."}}