{"action":"created","issue":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/378","repository_url":"https://api.github.com/repos/drupal-composer/drupal-project","labels_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/378/comments","events_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/378/events","html_url":"https://github.com/drupal-composer/drupal-project/issues/378","id":311556742,"node_id":"MDU6SXNzdWUzMTE1NTY3NDI=","number":378,"title":"D7:  Attempting to patch Drupal Core blows away the web directory","user":{"login":"lhridley","id":153297,"node_id":"MDQ6VXNlcjE1MzI5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/153297?v=4","gravatar_id":"","url":"https://api.github.com/users/lhridley","html_url":"https://github.com/lhridley","followers_url":"https://api.github.com/users/lhridley/followers","following_url":"https://api.github.com/users/lhridley/following{/other_user}","gists_url":"https://api.github.com/users/lhridley/gists{/gist_id}","starred_url":"https://api.github.com/users/lhridley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhridley/subscriptions","organizations_url":"https://api.github.com/users/lhridley/orgs","repos_url":"https://api.github.com/users/lhridley/repos","events_url":"https://api.github.com/users/lhridley/events{/privacy}","received_events_url":"https://api.github.com/users/lhridley/received_events","type":"User","site_admin":false},"labels":[{"id":267361327,"node_id":"MDU6TGFiZWwyNjczNjEzMjc=","url":"https://api.github.com/repos/drupal-composer/drupal-project/labels/D7","name":"D7","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-05T10:32:12Z","updated_at":"2018-09-24T19:42:16Z","closed_at":"2018-09-24T19:42:16Z","author_association":"NONE","body":"We have a D7 project that is managed with Composer, and has been for some time.  We recently switched this project to the drupal-project composer files, and implemented some changes to a custom composer management process to solve some issues we were encountering, one of which was applying patches to Drupal projects.  The patch process for contrib modules has been working flawlessly.\r\n\r\nWe just encountered an unexpected issue when we attempted to patch Drupal Core recently by backporting the recent security update to the version of Drupal for this project (we're currently refactoring functionality that is impacted by a previous core update).  \r\n\r\nThe patch process deleted the web directory, including all files in the sites directory\r\n- Everything in the sites/default directory was deleted, including the files directory, and the settings.php file\r\n- All module, library and theme code in the sites/all directory was deleted\r\n\r\nThat was most unexpected.\r\n\r\nThis is in spite of having these directories specified in \"preserve-paths\" (see snippet below, note this project uses \"www\" instead of \"web\" for the web root):\r\n\r\n```\r\n\"preserve-paths\": [\r\n            \"www/sites/all/libraries\",\r\n            \"www/sites/all/modules/custom\",\r\n            \"www/sites/all/modules/features\",\r\n            \"www/sites/all/themes/custom\",\r\n            \"www/sites/all/translations\",\r\n            \"www/sites/default\",\r\n            \"www\"\r\n        ],\r\n```\r\n\r\nI searched through the issue queue, and located this issue, that appears to be related, that was closed because the initiator could not provide details to reproduce the issue.\r\n#299 \r\n\r\nI'm currently looking at a workaround to apply patches to core through post-install-cmd script, but applying core patches in this manner defeats the purpose of using composer to manage patches and us the composer.json file to track the patches applied for a project.\r\n\r\nAny insight would be appreciated."},"comment":{"url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/comments/424099830","html_url":"https://github.com/drupal-composer/drupal-project/issues/378#issuecomment-424099830","issue_url":"https://api.github.com/repos/drupal-composer/drupal-project/issues/378","id":424099830,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDA5OTgzMA==","user":{"login":"jcnventura","id":329663,"node_id":"MDQ6VXNlcjMyOTY2Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/329663?v=4","gravatar_id":"","url":"https://api.github.com/users/jcnventura","html_url":"https://github.com/jcnventura","followers_url":"https://api.github.com/users/jcnventura/followers","following_url":"https://api.github.com/users/jcnventura/following{/other_user}","gists_url":"https://api.github.com/users/jcnventura/gists{/gist_id}","starred_url":"https://api.github.com/users/jcnventura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcnventura/subscriptions","organizations_url":"https://api.github.com/users/jcnventura/orgs","repos_url":"https://api.github.com/users/jcnventura/repos","events_url":"https://api.github.com/users/jcnventura/events{/privacy}","received_events_url":"https://api.github.com/users/jcnventura/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T19:42:16Z","updated_at":"2018-09-24T19:42:16Z","author_association":"COLLABORATOR","body":"Closing the issue due to lack of reply."}}
{"actor":{"display_login":"jcnventura"}}