{"action":"created","issue":{"url":"https://api.github.com/repos/bldr-io/bldr/issues/149","repository_url":"https://api.github.com/repos/bldr-io/bldr","labels_url":"https://api.github.com/repos/bldr-io/bldr/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/bldr-io/bldr/issues/149/comments","events_url":"https://api.github.com/repos/bldr-io/bldr/issues/149/events","html_url":"https://github.com/bldr-io/bldr/issues/149","id":134297456,"number":149,"title":"bin/bldr update removes all composer dependencies - composer.json not found?","user":{"login":"lastzero","id":301686,"avatar_url":"https://avatars.githubusercontent.com/u/301686?v=3","gravatar_id":"","url":"https://api.github.com/users/lastzero","html_url":"https://github.com/lastzero","followers_url":"https://api.github.com/users/lastzero/followers","following_url":"https://api.github.com/users/lastzero/following{/other_user}","gists_url":"https://api.github.com/users/lastzero/gists{/gist_id}","starred_url":"https://api.github.com/users/lastzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lastzero/subscriptions","organizations_url":"https://api.github.com/users/lastzero/orgs","repos_url":"https://api.github.com/users/lastzero/repos","events_url":"https://api.github.com/users/lastzero/events{/privacy}","received_events_url":"https://api.github.com/users/lastzero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-17T14:41:00Z","updated_at":"2016-02-18T07:24:21Z","closed_at":null,"body":"Bldr comes with predefined `install` and `update` commands that can not be overwritten in `.bldr.yml.dist`. Those commands execute `composer install` / `composer update`, but don't seem to find `composer.json`:\r\n\r\n```\r\n# bin/bldr update\r\nLoading composer repositories with package information\r\nUpdating dependencies                                 \r\n  - Removing bldr-io/bldr (8.4.0)\r\n  - Removing bldr-io/composer-plugin (1.0.6)\r\n  - Removing dflydev/embedded-composer (dev-master)\r\n  - Removing composer/composer (dev-master)\r\n  - Removing composer/spdx-licenses (1.1.2)\r\n  - Removing composer/semver (1.2.0)\r\n...\r\n```\r\n\r\nBasically, Bldr removes itself, which doesn't seem to be the intended behaviour. It probably looks for `composer.json` in `bin` instead of the main directory?\r\n\r\nMy `composer.json` looks like this (only the important parts):\r\n```\r\n{\r\n  \"autoload\": {\r\n    \"psr-0\": {\r\n      \"\": \"src/\"\r\n    }\r\n  },\r\n  \"minimum-stability\": \"dev\",\r\n  \"prefer-stable\": true,\r\n  \"require\": {\r\n    \"symfony/symfony\": \"2.8.*\"\r\n  },\r\n  \"require-dev\": {\r\n    \"bldr-io/bldr\": \"@stable\"\r\n  },\r\n  \"config\": {\r\n    \"bin-dir\": \"bin\"\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bldr-io/bldr/issues/comments/185576948","html_url":"https://github.com/bldr-io/bldr/issues/149#issuecomment-185576948","issue_url":"https://api.github.com/repos/bldr-io/bldr/issues/149","id":185576948,"user":{"login":"lastzero","id":301686,"avatar_url":"https://avatars.githubusercontent.com/u/301686?v=3","gravatar_id":"","url":"https://api.github.com/users/lastzero","html_url":"https://github.com/lastzero","followers_url":"https://api.github.com/users/lastzero/followers","following_url":"https://api.github.com/users/lastzero/following{/other_user}","gists_url":"https://api.github.com/users/lastzero/gists{/gist_id}","starred_url":"https://api.github.com/users/lastzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lastzero/subscriptions","organizations_url":"https://api.github.com/users/lastzero/orgs","repos_url":"https://api.github.com/users/lastzero/repos","events_url":"https://api.github.com/users/lastzero/events{/privacy}","received_events_url":"https://api.github.com/users/lastzero/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T07:24:21Z","updated_at":"2016-02-18T07:24:21Z","body":"Maybe you want to rename the arguments to `install-blocks` and `update-blocks` then, as a quick fix? We're using Bldr as a task runner / automation tool. If `bin/bldr build` works and executes a project build, any sane person would expect `bin/bldr update` to execute a project update!? (Most devs don't read the docs, when they are in a hurry.)"}}