{"action":"closed","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/893","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/893/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/893/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/893/events","html_url":"https://github.com/yarnpkg/yarn/issues/893","id":182548268,"number":893,"title":"yarn install --flat only installs packages that have conflicts","user":{"login":"bouk","id":97820,"avatar_url":"https://avatars.githubusercontent.com/u/97820?v=3","gravatar_id":"","url":"https://api.github.com/users/bouk","html_url":"https://github.com/bouk","followers_url":"https://api.github.com/users/bouk/followers","following_url":"https://api.github.com/users/bouk/following{/other_user}","gists_url":"https://api.github.com/users/bouk/gists{/gist_id}","starred_url":"https://api.github.com/users/bouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouk/subscriptions","organizations_url":"https://api.github.com/users/bouk/orgs","repos_url":"https://api.github.com/users/bouk/repos","events_url":"https://api.github.com/users/bouk/events{/privacy}","received_events_url":"https://api.github.com/users/bouk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T14:57:17Z","updated_at":"2016-10-12T18:23:01Z","closed_at":"2016-10-12T18:23:01Z","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\nConsider the following package.json (and no yarn.lock):\r\n\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"jquery\": \"3.1.1\",\r\n    \"moment\": \"2.11.2\",\r\n    \"moment-timezone\": \"0.5.0\"\r\n  },\r\n  \"resolutions\": {\r\n    \"moment\": \"2.11.2\"\r\n  }\r\n}\r\n```\r\n\r\nIf I run `yarn install --flat` (or add the `\"flat\": true` field) I would expect it to properly install all the packages on a single level. Instead what happens is that _only_ the moment package is installed, with `moment-timezone` and `jquery` missing from the `node_modules` folder. It does properly create the following yarn.lock file, though:\r\n\r\n```\r\n# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\r\n# yarn lockfile v1\r\njquery@3.1.1:\r\n  version \"3.1.1\"\r\n  resolved \"https://registry.yarnpkg.com/jquery/-/jquery-3.1.1.tgz#347c1c21c7e004115e0a4da32cece041fad3c8a3\"\r\n\r\nmoment-timezone@0.5.0:\r\n  version \"0.5.0\"\r\n  resolved \"https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.0.tgz#f282c8e5e6e28614b2f6dd1048663754d30ea11f\"\r\n  dependencies:\r\n    moment \">= 2.6.0\"\r\n\r\n\"moment@>= 2.6.0\", moment@2.11.2:\r\n  version \"2.11.2\"\r\n  resolved \"https://registry.yarnpkg.com/moment/-/moment-2.11.2.tgz#87968e5f95ac038c2e42ac959c75819cd3f52901\"\r\n\r\n```\r\n\r\n**What is the expected behavior?**\r\n\r\nEverything is installed\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nNode v6.7.0\r\nYarn v0.15.1\r\nmacOS 10.12"}}
{"actor":{"display_login":"kittens"}}