{"action":"created","issue":{"url":"https://api.github.com/repos/Codegyre/Robo/issues/276","repository_url":"https://api.github.com/repos/Codegyre/Robo","labels_url":"https://api.github.com/repos/Codegyre/Robo/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Codegyre/Robo/issues/276/comments","events_url":"https://api.github.com/repos/Codegyre/Robo/issues/276/events","html_url":"https://github.com/Codegyre/Robo/pull/276","id":134836716,"number":276,"title":"Rename a file or directory, coping with cross-partition PHP bug","user":{"login":"jpstacey","id":187682,"avatar_url":"https://avatars.githubusercontent.com/u/187682?v=3","gravatar_id":"","url":"https://api.github.com/users/jpstacey","html_url":"https://github.com/jpstacey","followers_url":"https://api.github.com/users/jpstacey/followers","following_url":"https://api.github.com/users/jpstacey/following{/other_user}","gists_url":"https://api.github.com/users/jpstacey/gists{/gist_id}","starred_url":"https://api.github.com/users/jpstacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpstacey/subscriptions","organizations_url":"https://api.github.com/users/jpstacey/orgs","repos_url":"https://api.github.com/users/jpstacey/repos","events_url":"https://api.github.com/users/jpstacey/events{/privacy}","received_events_url":"https://api.github.com/users/jpstacey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-19T10:59:07Z","updated_at":"2016-02-20T13:19:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Codegyre/Robo/pulls/276","html_url":"https://github.com/Codegyre/Robo/pull/276","diff_url":"https://github.com/Codegyre/Robo/pull/276.diff","patch_url":"https://github.com/Codegyre/Robo/pull/276.patch"},"body":"When extraction is done within e.g. `/var/www/...`, and then the result moved to `/tmp`, this can fail on a core PHP bug:\r\n\r\nhttps://bugs.php.net/bug.php?id=54097\r\n\r\nif `/var` and `/tmp` are on different filesystems.\r\n\r\nThe simple workaround on that bug report is implemented below; Drush has also historically implemented [a much more complex workaround](http://api.drush.org/api/drush/includes%21filesystem.inc/function/drush_move_dir/6.x).\r\n\r\nSee also drupal-composer/drupal-project#109 for initial discussion."},"comment":{"url":"https://api.github.com/repos/Codegyre/Robo/issues/comments/186593826","html_url":"https://github.com/Codegyre/Robo/pull/276#issuecomment-186593826","issue_url":"https://api.github.com/repos/Codegyre/Robo/issues/276","id":186593826,"user":{"login":"jpstacey","id":187682,"avatar_url":"https://avatars.githubusercontent.com/u/187682?v=3","gravatar_id":"","url":"https://api.github.com/users/jpstacey","html_url":"https://github.com/jpstacey","followers_url":"https://api.github.com/users/jpstacey/followers","following_url":"https://api.github.com/users/jpstacey/following{/other_user}","gists_url":"https://api.github.com/users/jpstacey/gists{/gist_id}","starred_url":"https://api.github.com/users/jpstacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpstacey/subscriptions","organizations_url":"https://api.github.com/users/jpstacey/orgs","repos_url":"https://api.github.com/users/jpstacey/repos","events_url":"https://api.github.com/users/jpstacey/events{/privacy}","received_events_url":"https://api.github.com/users/jpstacey/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T13:19:26Z","updated_at":"2016-02-20T13:19:26Z","body":"Yes, I think that branch fixes things. I now get an entry for `_rename` in the logs, and no errors: so I'm assuming that's a success!\r\n\r\n```\r\n$ rm web/autoload.php && sh ./scripts/composer/post-install.sh\r\nYou are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug\r\n> DrupalComposer\\DrupalScaffold\\Plugin::scaffold\r\n [FileSystem\\FilesystemStack] mkdir [\"\\/tmp\\/\\/drupal-scaffold-1455974199\"]\r\n [FileSystem\\FilesystemStack] _chmod [\"\\/var\\/www\\/personal\\/drupal8-magneticphield\\/drupal-project-issue-109\\/drupal-project\\/web\\/sites\\/default\",493]\r\n [FileSystem\\CleanDir] Cleaned /tmp//drupal-scaffold-1455974199\r\n [Archive\\Extract] Extracting /tmp//drupal-scaffold-1455974199/drupal-8.0.3.tar.gz\r\n [Archive\\Extract] /tmp//drupal-scaffold-1455974199/drupal-8.0.3.tar.gz extracted\r\n [FileSystem\\FilesystemStack] _rename [\"\\/var\\/www\\/personal\\/drupal8-magneticphield\\/drupal-project-issue-109\\/drupal-project\\/vendor\\/drupal-composer\\/drupal-scaffold\\/scripts\\/tmp9701536721455974217\\/drupal-8.0.3\",\"\\/tmp\\/\\/drupal-scaffold-1455974199\\/drupal-8\"]\r\n [FileSystem\\CopyDir] Copied from /var/www/personal/drupal8-magneticphield/drupal-project-issue-109/drupal-project/vendor/drupal-composer/drupal-scaffold/scripts/tmp9701536721455974217/drupal-8.0.3 to /tmp//drupal-scaffold-1455974199/drupal-8\r\n [Remote\\Rsync] Running rsync -a -v -z --include 'sites' --include 'sites/default' --include 'sites/default/default.settings.php' --include 'sites/default/default.services.yml' --include 'sites/development.services.yml' --include 'sites/example.settings.local.php' --include 'sites/example.sites.php' --exclude '.gitkeep' --exclude 'autoload.php' --exclude 'composer.json' --exclude 'composer.lock' --exclude 'core' --exclude 'drush' --exclude 'example.gitignore' --exclude 'LICENSE.txt' --exclude 'README.txt' --exclude 'vendor' --exclude 'themes' --exclude 'profiles' --exclude 'modules' --exclude 'sites/*' --exclude 'sites/default/*' '/tmp//drupal-scaffold-1455974199/drupal-8/' '/var/www/personal/drupal8-magneticphield/drupal-project-issue-109/drupal-project/web'\r\nsending incremental file list\r\n./\r\n.csslintrc\r\n.editorconfig\r\n.eslintignore\r\n.eslintrc\r\n.gitattributes\r\n.htaccess\r\nindex.php\r\nrobots.txt\r\nupdate.php\r\nweb.config\r\nsites/\r\nsites/development.services.yml\r\nsites/example.settings.local.php\r\nsites/example.sites.php\r\nsites/default/\r\nsites/default/default.services.yml\r\nsites/default/default.settings.php\r\n\r\nsent 22,335 bytes  received 320 bytes  45,310.00 bytes/sec\r\ntotal size is 59,504  speedup is 2.63\r\n [Remote\\Rsync] Done in 0.058s\r\n [FileSystem\\DeleteDir] Deleted /tmp//drupal-scaffold-1455974199...\r\n [FileSystem\\FilesystemStack] _chmod [\"\\/var\\/www\\/personal\\/drupal8-magneticphield\\/drupal-project-issue-109\\/drupal-project\\/web\\/sites\\/default\",16877]\r\n$\r\n```\r\n"}}