{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1168","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1168/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1168/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1168/events","html_url":"https://github.com/yarnpkg/yarn/issues/1168","id":183512166,"number":1168,"title":"yarn.lock file changing due to non-deterministic generation. ","user":{"login":"SPSpwetter","id":12737454,"avatar_url":"https://avatars.githubusercontent.com/u/12737454?v=3","gravatar_id":"","url":"https://api.github.com/users/SPSpwetter","html_url":"https://github.com/SPSpwetter","followers_url":"https://api.github.com/users/SPSpwetter/followers","following_url":"https://api.github.com/users/SPSpwetter/following{/other_user}","gists_url":"https://api.github.com/users/SPSpwetter/gists{/gist_id}","starred_url":"https://api.github.com/users/SPSpwetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SPSpwetter/subscriptions","organizations_url":"https://api.github.com/users/SPSpwetter/orgs","repos_url":"https://api.github.com/users/SPSpwetter/repos","events_url":"https://api.github.com/users/SPSpwetter/events{/privacy}","received_events_url":"https://api.github.com/users/SPSpwetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yarnpkg/yarn/milestones/2","html_url":"https://github.com/yarnpkg/yarn/milestones/Reason%20Support","labels_url":"https://api.github.com/repos/yarnpkg/yarn/milestones/2/labels","id":2073369,"number":2,"title":"Reason Support","description":"","creator":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2016-10-17T06:02:11Z","updated_at":"2016-10-19T19:15:36Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-10-17T19:59:12Z","updated_at":"2016-10-19T21:51:01Z","closed_at":null,"body":"Bug: Yarn.lock file changing ordering of dependencies and resolutions. \r\n\r\n**What is the current behavior?**\r\n\r\nThe yarn.lock file has changes between different developers systems, with small differences. Mostly they seem to be ordering differences. \r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n1. Check yarn.lock file into source repository. \r\n2. Tell all developers we're moving to yarn, that they have to update everything. \r\n3. Developers get modification notices from git that yarn.lock has changed and are unsure what to do because they're not front end developers. \r\n\r\nSee differences sample below. These are all transitive dependencies from the package.json root. Reviewing the differences, it seems that yarn isn't fully deterministic in ordering when generating the yarn.lock file, as the ultimate content is identical, but the pack ordering and the version ordering for a package shows differences. \r\n\r\n**What is the expected behavior?**\r\n\r\nExpectation: Developer can check in yarn.lock file. Other developers can run yarn and get an up-to-date node-modules folder. If a new yarn.lock file is produced, it is identical to the checked in version. \r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nnode: 4.6.0 with npm 3.10.8\r\nyarn: 0.15.1\r\nOS: Mac OS Sierra, and Ubuntu 14.4\r\n\r\n\r\nSample Differences: \r\n```diff\r\ndiff --git a/skycontrol/src/sc-web/yarn.lock b/skycontrol/src/sc-web/yarn.lock\r\nindex 7cf9362..a4dd27f 100644\r\n--- a/skycontrol/src/sc-web/yarn.lock\r\n+++ b/skycontrol/src/sc-web/yarn.lock\r\n@@ -8,13 +8,6 @@ abbrev@1, abbrev@1.0.x:\r\n   version \"1.0.9\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135\"\r\n \r\n-accepts@~1.3.3:\r\n-  version \"1.3.3\"\r\n-  resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca\"\r\n-  dependencies:\r\n-    mime-types \"~2.1.11\"\r\n-    negotiator \"0.6.1\"\r\n-\r\n accepts@1.1.4:\r\n   version \"1.1.4\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/accepts/-/accepts-1.1.4.tgz#d71c96f7d41d0feda2c38cd14e8a27c04158df4a\"\r\n@@ -22,6 +15,13 @@ accepts@1.1.4:\r\n     mime-types \"~2.0.4\"\r\n     negotiator \"0.4.9\"\r\n \r\n+accepts@~1.3.3:\r\n+  version \"1.3.3\"\r\n+  resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca\"\r\n+  dependencies:\r\n+    mime-types \"~2.1.11\"\r\n+    negotiator \"0.6.1\"\r\n+\r\n acorn-globals@^1.0.4:\r\n   version \"1.0.9\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/acorn-globals/-/acorn-globals-1.0.9.tgz#55bb5e98691507b74579d0513413217c380c54cf\"\r\n@@ -164,14 +164,14 @@ async-each@^1.0.0:\r\n   version \"1.0.1\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d\"\r\n \r\n+async@1.x, async@^1.3.0, async@^1.4.0:\r\n+  version \"1.5.2\"\r\n+  resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a\"\r\n+\r\n async@^0.9.0, async@~0.9.0:\r\n   version \"0.9.2\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d\"\r\n \r\n-async@^1.3.0, async@^1.4.0, async@1.x:\r\n-  version \"1.5.2\"\r\n-  resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a\"\r\n-\r\n async@^2.0.1:\r\n   version \"2.1.1\"\r\n   resolved \"http://darkstar-devops.lab.skyportsystems.com:4873/async/-/async-2.1.1.tgz#e11b6d10043f2254efb61a21163d840ccddb8d28\"\r\n@@ -213,7 +213,7 @@ babel-code-frame@^6.11.0, babel-code-frame@^6.16.0:\r\n     esutils \"^2.0.2\"\r\n     js-tokens \"^2.0.0\"\r\n \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/254951543","html_url":"https://github.com/yarnpkg/yarn/issues/1168#issuecomment-254951543","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1168","id":254951543,"user":{"login":"SPSpwetter","id":12737454,"avatar_url":"https://avatars.githubusercontent.com/u/12737454?v=3","gravatar_id":"","url":"https://api.github.com/users/SPSpwetter","html_url":"https://github.com/SPSpwetter","followers_url":"https://api.github.com/users/SPSpwetter/followers","following_url":"https://api.github.com/users/SPSpwetter/following{/other_user}","gists_url":"https://api.github.com/users/SPSpwetter/gists{/gist_id}","starred_url":"https://api.github.com/users/SPSpwetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SPSpwetter/subscriptions","organizations_url":"https://api.github.com/users/SPSpwetter/orgs","repos_url":"https://api.github.com/users/SPSpwetter/repos","events_url":"https://api.github.com/users/SPSpwetter/events{/privacy}","received_events_url":"https://api.github.com/users/SPSpwetter/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T21:51:01Z","updated_at":"2016-10-19T21:51:01Z","body":"Confirming that this appears in 0.16.0 as well. "}}
{"actor":{"display_login":"SPSpwetter"}}