{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2051","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2051/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2051/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2051/events","html_url":"https://github.com/yarnpkg/yarn/issues/2051","id":191896148,"node_id":"MDU6SXNzdWUxOTE4OTYxNDg=","number":2051,"title":"Yarn attempts to rebuild fsevents even on incompatible operating systems","user":{"login":"Daniel15","id":91933,"node_id":"MDQ6VXNlcjkxOTMz","avatar_url":"https://avatars2.githubusercontent.com/u/91933?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[{"id":313603437,"node_id":"MDU6TGFiZWwzMTM2MDM0Mzc=","url":"https://api.github.com/repos/yarnpkg/yarn/labels/cat-bug","name":"cat-bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"kittens","id":853712,"node_id":"MDQ6VXNlcjg1MzcxMg==","avatar_url":"https://avatars0.githubusercontent.com/u/853712?v=4","gravatar_id":"","url":"https://api.github.com/users/kittens","html_url":"https://github.com/kittens","followers_url":"https://api.github.com/users/kittens/followers","following_url":"https://api.github.com/users/kittens/following{/other_user}","gists_url":"https://api.github.com/users/kittens/gists{/gist_id}","starred_url":"https://api.github.com/users/kittens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittens/subscriptions","organizations_url":"https://api.github.com/users/kittens/orgs","repos_url":"https://api.github.com/users/kittens/repos","events_url":"https://api.github.com/users/kittens/events{/privacy}","received_events_url":"https://api.github.com/users/kittens/received_events","type":"User","site_admin":false},"assignees":[{"login":"kittens","id":853712,"node_id":"MDQ6VXNlcjg1MzcxMg==","avatar_url":"https://avatars0.githubusercontent.com/u/853712?v=4","gravatar_id":"","url":"https://api.github.com/users/kittens","html_url":"https://github.com/kittens","followers_url":"https://api.github.com/users/kittens/followers","following_url":"https://api.github.com/users/kittens/following{/other_user}","gists_url":"https://api.github.com/users/kittens/gists{/gist_id}","starred_url":"https://api.github.com/users/kittens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittens/subscriptions","organizations_url":"https://api.github.com/users/kittens/orgs","repos_url":"https://api.github.com/users/kittens/repos","events_url":"https://api.github.com/users/kittens/events{/privacy}","received_events_url":"https://api.github.com/users/kittens/received_events","type":"User","site_admin":false},{"login":"bestander","id":2121048,"node_id":"MDQ6VXNlcjIxMjEwNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2121048?v=4","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-11-28T00:07:33Z","updated_at":"2018-10-30T12:19:20Z","closed_at":"2016-11-30T01:45:57Z","author_association":"MEMBER","body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\n`fsevents` is only relevant on Mac OS, it does not compile on Linux or Windows. Yarn appears to try and compile it even on incompatible operating system. This is a waste of time as it's always going to fail.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nThis is the `package.json` from one of my sites:\r\n```json\r\n{\r\n  \"name\": \"sitename\",\r\n  \"version\": \"0.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"devDependencies\": {\r\n    \"assets-webpack-plugin\": \"~3.0.0\",\r\n    \"babel-core\": \"~5.8.25\",\r\n    \"babel-loader\": \"~5.3.2\",\r\n    \"exports-loader\": \"~0.6.2\",\r\n    \"expose-loader\": \"~0.7.0\",\r\n    \"imports-loader\": \"~0.6.4\",\r\n    \"webpack\": \"~1.12.2\"\r\n  },\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"daniel@host.dan.cx:/var/local/git/sitename\"\r\n  },\r\n  \"author\": \"Daniel Lo Nigro <daniel@dan.cx> (http://dan.cx/)\",\r\n  \"scripts\": {\r\n    \"build-dev\": \"NODE_ENV=development webpack -d\",\r\n    \"build-prod\": \"NODE_ENV=production webpack -p\",\r\n    \"watch\": \"NODE_ENV=development webpack --progress --colors --watch -d\",\r\n    \"update-babel-helpers\": \"babel-external-helpers -l get,inherits,create-class,class-call-check,extends,interop-require-default > ./public/assets/js/babel-external-helpers.js\"\r\n  },\r\n  \"dependencies\": {\r\n    \"array.prototype.find\": \"~1.0.0\",\r\n    \"babel-runtime\": \"~5.8.25\",\r\n    \"classnames\": \"^2.1.5\",\r\n    \"fbemitter\": \"^2.0.0\",\r\n    \"flux\": \"~2.1.1\",\r\n    \"react\": \"~0.14.0\",\r\n    \"react-onclickoutside\": \"git://github.com/Daniel15/react-onclickoutside.git\"\r\n  }\r\n}\r\n```\r\n\r\nRunning `yarn` gives me this as part of the output:\r\n```\r\n[2/4] Fetching packages...\r\nwarning fsevents@1.0.15: The platform \"win32\" is incompatible with this module.\r\ninfo \"fsevents@1.0.15\" is an optional dependency and failed compatibility check. Excluding it from installation.\r\n```\r\n\r\nHowever, in the \"Building fresh packages...\" stage of installation, it still attempts to build the dependency, which obviously fails as it should only be built on Mac OS.\r\n\r\nThe installation still succeeds so this is not a blocker, it's just very odd behaviour.\r\n\r\nThe second time I run `yarn`, it shows that everything is up-to-date:\r\n```\r\nyarn install v0.17.8\r\nwarning sitename@0.0.0: No license field\r\n[1/4] Resolving packages...\r\nsuccess Already up-to-date.\r\nDone in 0.28s.\r\n```\r\n\r\nHowever, when I add another dependency, it tries to build fsevents again.\r\n\r\n**What is the expected behavior?**\r\nYarn should not attempt to build a native dependency if it's incompatible with the current OS\r\n\r\nnpm handles this correctly:\r\n```\r\nnpm WARN optional Skipping failed optional dependency /chokidar/fsevents:\r\nnpm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15\r\n```\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nYarn 0.17.8\r\nWindows 10\r\nNode.js 6.9.1"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/434278417","html_url":"https://github.com/yarnpkg/yarn/issues/2051#issuecomment-434278417","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2051","id":434278417,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDI3ODQxNw==","user":{"login":"inversion","id":1159424,"node_id":"MDQ6VXNlcjExNTk0MjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1159424?v=4","gravatar_id":"","url":"https://api.github.com/users/inversion","html_url":"https://github.com/inversion","followers_url":"https://api.github.com/users/inversion/followers","following_url":"https://api.github.com/users/inversion/following{/other_user}","gists_url":"https://api.github.com/users/inversion/gists{/gist_id}","starred_url":"https://api.github.com/users/inversion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inversion/subscriptions","organizations_url":"https://api.github.com/users/inversion/orgs","repos_url":"https://api.github.com/users/inversion/repos","events_url":"https://api.github.com/users/inversion/events{/privacy}","received_events_url":"https://api.github.com/users/inversion/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T12:19:20Z","updated_at":"2018-10-30T12:19:20Z","author_association":"NONE","body":"Getting this issue with 1.10.1 too on linux"}}
{"actor":{"display_login":"inversion"}}