{"action":"closed","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5290","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5290/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5290/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5290/events","html_url":"https://github.com/composer/composer/issues/5290","id":153267614,"number":5290,"title":"Regression on Working Directory Switch","user":{"login":"ktomk","id":352517,"avatar_url":"https://avatars.githubusercontent.com/u/352517?v=3","gravatar_id":"","url":"https://api.github.com/users/ktomk","html_url":"https://github.com/ktomk","followers_url":"https://api.github.com/users/ktomk/followers","following_url":"https://api.github.com/users/ktomk/following{/other_user}","gists_url":"https://api.github.com/users/ktomk/gists{/gist_id}","starred_url":"https://api.github.com/users/ktomk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktomk/subscriptions","organizations_url":"https://api.github.com/users/ktomk/orgs","repos_url":"https://api.github.com/users/ktomk/repos","events_url":"https://api.github.com/users/ktomk/events{/privacy}","received_events_url":"https://api.github.com/users/ktomk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T16:19:45Z","updated_at":"2016-05-05T22:21:38Z","closed_at":"2016-05-05T22:21:38Z","body":"I'm using composer snapshots in a build script on Travis and I noticed that the working directory switch (`-d=build` in my case) stopped working. \r\n\r\nTesting the build script against a source version revealed that 92207da83ad1fac1b43e710cf6cd519d16b54f36 introduced the issue. Build works fine on the previous commit d07b4e0f3ecf16cd86584eb86792d0d7ac0d8e12.\r\n\r\nThe picture I get is that composer uses the vendor directory from the working directory (`.`) as well as the composer.lock but uses the composer.json from directory in the switch (`build`).\r\n\r\nIt's a bit weird but I think worth to report first of all.\r\n\r\nThe command I use in the build script is:\r\n\r\n    ./composer.phar -d=build install --no-interaction"}}