{"action":"created","issue":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/111","repository_url":"https://api.github.com/repos/drupal-composer/drupal-project","labels_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/111/comments","events_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/111/events","html_url":"https://github.com/drupal-composer/drupal-project/issues/111","id":134901128,"number":111,"title":"Composer cannot find the drupal-scaffold command in post-install.sh","user":{"login":"chriscohen","id":205978,"avatar_url":"https://avatars.githubusercontent.com/u/205978?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscohen","html_url":"https://github.com/chriscohen","followers_url":"https://api.github.com/users/chriscohen/followers","following_url":"https://api.github.com/users/chriscohen/following{/other_user}","gists_url":"https://api.github.com/users/chriscohen/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscohen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscohen/subscriptions","organizations_url":"https://api.github.com/users/chriscohen/orgs","repos_url":"https://api.github.com/users/chriscohen/repos","events_url":"https://api.github.com/users/chriscohen/events{/privacy}","received_events_url":"https://api.github.com/users/chriscohen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-19T16:03:09Z","updated_at":"2016-02-21T05:04:23Z","closed_at":null,"body":"I have tweaked the DOCUMENTROOT variable in post-install.sh to be something else because \"web\" won't work for us as a directory name.\r\n\r\nI have also tweaked the \"drupal-composer/drupal-scaffold\" to use \"dev-use-better-apis\" because of the apparent bug preventing the main branch from working at the moment.\r\n\r\nEverything seems to download fine in composer, but then the post-install.sh script has issues straight away.\r\n\r\nThe vendor dir definitely contains the class in question, but I don't know enough about this side of composer to know why it apparently cannot find the drupal-scaffold command as defined.\r\n\r\n```\r\n> sh ./scripts/composer/post-install.sh\r\n./scripts/composer/post-install.sh: line 8: composer: command not found\r\ncp: cannot stat `docroot/sites/default/default.settings.php': No such file or di\r\nrectory\r\nchmod: getting attributes of `docroot/sites/default/settings.php': No such file\r\nor directory\r\nCreate a sites/default/settings.php file with chmod 666\r\ncp: cannot stat `docroot/sites/default/default.services.yml': No such file or di\r\nrectory\r\nchmod: getting attributes of `docroot/sites/default/services.yml': No such file\r\nor directory\r\nCreate a sites/default/services.yml services.yml file with chmod 666\r\nmkdir: cannot create directory `docroot/sites/default/files': No such file or di\r\nrectory\r\nchmod: getting attributes of `docroot/sites/default/files': No such file or dire\r\nctory\r\nCreate a sites/default/files directory with chmod 777\r\n```"},"comment":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/comments/186746141","html_url":"https://github.com/drupal-composer/drupal-project/issues/111#issuecomment-186746141","issue_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/111","id":186746141,"user":{"login":"greg-1-anderson","id":612191,"avatar_url":"https://avatars.githubusercontent.com/u/612191?v=3","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T05:04:23Z","updated_at":"2016-02-21T05:04:23Z","body":"Side note: it should no longer be necessary to adjust the version/branch of drupal-scaffold in your composer.json file. Run `composer update`, and ensure that you have drupal-scaffold 1.1.1 and codegyre/robo 0.7.0, and that should clear up the bugs with cross-volume renames, and spaces in filenames.\r\n\r\nIt will still be necessary to have `composer` in your $PATH."}}