{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/705","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/705/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/705/events","html_url":"https://github.com/yarnpkg/yarn/issues/705","id":182349891,"number":705,"title":"[BUG] Yarn --ignore-optional flag is not working","user":{"login":"Sh1d0w","id":5074917,"avatar_url":"https://avatars.githubusercontent.com/u/5074917?v=3","gravatar_id":"","url":"https://api.github.com/users/Sh1d0w","html_url":"https://github.com/Sh1d0w","followers_url":"https://api.github.com/users/Sh1d0w/followers","following_url":"https://api.github.com/users/Sh1d0w/following{/other_user}","gists_url":"https://api.github.com/users/Sh1d0w/gists{/gist_id}","starred_url":"https://api.github.com/users/Sh1d0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sh1d0w/subscriptions","organizations_url":"https://api.github.com/users/Sh1d0w/orgs","repos_url":"https://api.github.com/users/Sh1d0w/repos","events_url":"https://api.github.com/users/Sh1d0w/events{/privacy}","received_events_url":"https://api.github.com/users/Sh1d0w/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-11T19:16:52Z","updated_at":"2016-10-12T06:18:13Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\nIt's a bug.\r\n\r\n**What is the current behavior?**\r\nWhile doing `yarn` install on the freshly checked out repo here https://github.com/brave/browser-laptop\r\nthe command fails with:\r\n\r\n    yarn --ignore-optional\r\n    yarn install v0.15.1\r\n    info No lockfile found.\r\n    [1/4] Resolving packages...\r\n    warning babel@6.5.2: Babel's CLI commands have been moved from the babel package to the babel-cli package\r\n    warning mocha > glob > minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\n    warning flow-bin > bin-wrapper > globby > glob > minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\n    warning mocha > to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.\r\n    warning mocha > jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade\r\n    warning font-awesome-webpack > css-loader > cssnano > css-list@0.1.3: Deprecated.\r\n    warning font-awesome-webpack > css-loader > cssnano > postcss-merge-idents > css-list@0.1.3: Deprecated.\r\n    warning electron-builder > progress-stream > through2 > xtend > object-keys@0.4.0: \r\n    warning gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\n    warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\n    [2/4] Fetching packages...\r\n    warning assert@0.4.9: The engine \"ender\" appears to be invalid.\r\n    warning appdmg@0.3.10: The platform \"linux\" is incompatible with this module.\r\n    info \"appdmg@0.3.10\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n    error macos-alias@0.2.11: The platform \"linux\" is incompatible with this module.\r\n    error Found incompatible module\r\n    info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n\r\nYarn must not try to install packages that are not for that OS and should not fail on such cases. This deps are not defined in the package.json file. `yarn --ignore-optional` has no effect too.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n1. Check out the repo (Under Linux, reproduced with Fedora 24) https://github.com/brave/browser-laptop\r\n2. Run `yarn`\r\n\r\n**What is the expected behavior?**\r\nDoing `npm install` installs all dependencies correctly without errors.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nnode 5.6.0\r\nyarn 0.15.1\r\nFedora 24, Linux\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/253128905","html_url":"https://github.com/yarnpkg/yarn/issues/705#issuecomment-253128905","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/705","id":253128905,"user":{"login":"Kovensky","id":73085,"avatar_url":"https://avatars.githubusercontent.com/u/73085?v=3","gravatar_id":"","url":"https://api.github.com/users/Kovensky","html_url":"https://github.com/Kovensky","followers_url":"https://api.github.com/users/Kovensky/followers","following_url":"https://api.github.com/users/Kovensky/following{/other_user}","gists_url":"https://api.github.com/users/Kovensky/gists{/gist_id}","starred_url":"https://api.github.com/users/Kovensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kovensky/subscriptions","organizations_url":"https://api.github.com/users/Kovensky/orgs","repos_url":"https://api.github.com/users/Kovensky/repos","events_url":"https://api.github.com/users/Kovensky/events{/privacy}","received_events_url":"https://api.github.com/users/Kovensky/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T06:18:12Z","updated_at":"2016-10-12T06:18:12Z","body":"@Sh1d0w I mean, it works fine if I create a lockfile in a mac and then try to install it on linux -- fsevents gets skipped as an optional dependency:\r\n\r\n```\r\nwarning fsevents@1.0.14: The platform \"linux\" is incompatible with this module.\r\ninfo \"fsevents@1.0.14\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n```\r\n\r\nI wonder if the problem is when it has to _create_ a lockfile?"}}
{"actor":{"display_login":"Kovensky"}}