{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3049","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3049/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3049/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3049/events","html_url":"https://github.com/yarnpkg/yarn/issues/3049","id":219705828,"number":3049,"title":"Yarn bug with script chaining after third level","user":{"login":"fhewitt","id":4428148,"avatar_url":"https://avatars3.githubusercontent.com/u/4428148?v=4","gravatar_id":"","url":"https://api.github.com/users/fhewitt","html_url":"https://github.com/fhewitt","followers_url":"https://api.github.com/users/fhewitt/followers","following_url":"https://api.github.com/users/fhewitt/following{/other_user}","gists_url":"https://api.github.com/users/fhewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/fhewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhewitt/subscriptions","organizations_url":"https://api.github.com/users/fhewitt/orgs","repos_url":"https://api.github.com/users/fhewitt/repos","events_url":"https://api.github.com/users/fhewitt/events{/privacy}","received_events_url":"https://api.github.com/users/fhewitt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-05T20:32:11Z","updated_at":"2017-11-08T21:35:25Z","closed_at":"2017-04-12T15:43:45Z","author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nbug\r\n\r\n**What is the current behavior?**\r\n\r\nYarn script chaining is broken and throw an error as soon as it reach third levels.\r\n\r\n> An unexpected error occurred: \"Cannot create property '-registry-npmjs-org-' on string '{\\\"-registry-npmjs-org-\\\":\\\"\\\"}'\".\r\n\r\nThis render the script mechanism nearly useless in any serious project.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\nSimply add these scripts into the package.json, no dependency required\r\n```\r\n\"scripts\": {\r\n    \"play\": \"yarn run step\",\r\n    \"step\": \"yarn run end\",\r\n    \"end\": \"echo \\\"Should be echoed!\\\"\"\r\n}\r\n```\r\n\r\n- `yarn run end` works correctly\r\n- `yarn run step` works correctly\r\n- `yarn run play` fails with aforementioned error\r\n\r\n**What is the expected behavior?**\r\n\r\nYarn should be able to run reasonably long (>10 depth) script chain.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nnode 6.10.0\r\nyarn 0.21.3\r\nWindow 10 Pro, 64 bits\r\nGit Bash 4.3.46(2)-release (x86_64-pc-msys)"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/342967773","html_url":"https://github.com/yarnpkg/yarn/issues/3049#issuecomment-342967773","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3049","id":342967773,"user":{"login":"f-roland","id":15126070,"avatar_url":"https://avatars2.githubusercontent.com/u/15126070?v=4","gravatar_id":"","url":"https://api.github.com/users/f-roland","html_url":"https://github.com/f-roland","followers_url":"https://api.github.com/users/f-roland/followers","following_url":"https://api.github.com/users/f-roland/following{/other_user}","gists_url":"https://api.github.com/users/f-roland/gists{/gist_id}","starred_url":"https://api.github.com/users/f-roland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f-roland/subscriptions","organizations_url":"https://api.github.com/users/f-roland/orgs","repos_url":"https://api.github.com/users/f-roland/repos","events_url":"https://api.github.com/users/f-roland/events{/privacy}","received_events_url":"https://api.github.com/users/f-roland/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T21:35:25Z","updated_at":"2017-11-08T21:35:25Z","author_association":"NONE","body":"I have encountered this as well on mac os 10.13, node 8.9.0, yarn 1.2.1"}}
{"actor":{"display_login":"f-roland"}}