{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3588","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3588/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3588/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3588/events","html_url":"https://github.com/yarnpkg/yarn/issues/3588","id":233935756,"number":3588,"title":"yarn.lock changes after removing node_modules","user":{"login":"targos","id":2352663,"avatar_url":"https://avatars3.githubusercontent.com/u/2352663?v=3","gravatar_id":"","url":"https://api.github.com/users/targos","html_url":"https://github.com/targos","followers_url":"https://api.github.com/users/targos/followers","following_url":"https://api.github.com/users/targos/following{/other_user}","gists_url":"https://api.github.com/users/targos/gists{/gist_id}","starred_url":"https://api.github.com/users/targos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/targos/subscriptions","organizations_url":"https://api.github.com/users/targos/orgs","repos_url":"https://api.github.com/users/targos/repos","events_url":"https://api.github.com/users/targos/events{/privacy}","received_events_url":"https://api.github.com/users/targos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-06T15:41:31Z","updated_at":"2017-06-06T16:22:12Z","closed_at":"2017-06-06T16:22:12Z","body":"\r\n**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\nAfter installing two dependencies with `yarn add`. Removing node_modules and running `yarn` again changes `yarn.lock`.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\nShown in the following test repo: https://github.com/targos/yarn-bug-mime-db\r\n1. Create a new project with a fresh package.json: https://github.com/targos/yarn-bug-mime-db/tree/e58faae8f0ab3b8b3c21e65a3467933b1e54e523\r\n2. Run `yarn add koa@^1.2.0 koa-compress@^1.0.9`: https://github.com/targos/yarn-bug-mime-db/tree/b3f36fb85a120fbf5a313c1b4ce11bdb42d251b5\r\n3. Run `rm -rf node_modules && yarn`: https://github.com/targos/yarn-bug-mime-db/tree/cfaad20259f70a4c5b734f2a327a6b7f7ec75505\r\n\r\n[diff between step 2 and 3](https://github.com/targos/yarn-bug-mime-db/commit/cfaad20259f70a4c5b734f2a327a6b7f7ec75505):\r\n\r\n```diff\r\n yarn.lock | 6 +-----\r\n 1 file changed, 1 insertion(+), 5 deletions(-)\r\n\r\ndiff --git a/yarn.lock b/yarn.lock\r\nindex 540394d..ca5a414 100644\r\n--- a/yarn.lock\r\n+++ b/yarn.lock\r\n@@ -160,11 +160,7 @@ media-typer@0.3.0:\r\n   version \"0.3.0\"\r\n   resolved \"https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748\"\r\n \r\n-\"mime-db@>= 1.27.0 < 2\":\r\n-  version \"1.28.0\"\r\n-  resolved \"https://registry.yarnpkg.com/mime-db/-/mime-db-1.28.0.tgz#fedd349be06d2865b7fc57d837c6de4f17d7ac3c\"\r\n-\r\n-mime-db@~1.27.0:\r\n+\"mime-db@>= 1.27.0 < 2\", mime-db@~1.27.0:\r\n   version \"1.27.0\"\r\n   resolved \"https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1\"\r\n \r\n```\r\n\r\n**What is the expected behavior?**\r\n\r\n`yarn.lock` should not change. I do not know if the correct state is the one after step 2 or after step 3.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\n- Node.js 8.0.0\r\n- yarn 0.24.5\r\n- Linux 4.11.3-200.fc25.x86_64"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/306539836","html_url":"https://github.com/yarnpkg/yarn/issues/3588#issuecomment-306539836","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3588","id":306539836,"user":{"login":"arcanis","id":1037931,"avatar_url":"https://avatars1.githubusercontent.com/u/1037931?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanis","html_url":"https://github.com/arcanis","followers_url":"https://api.github.com/users/arcanis/followers","following_url":"https://api.github.com/users/arcanis/following{/other_user}","gists_url":"https://api.github.com/users/arcanis/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanis/subscriptions","organizations_url":"https://api.github.com/users/arcanis/orgs","repos_url":"https://api.github.com/users/arcanis/repos","events_url":"https://api.github.com/users/arcanis/events{/privacy}","received_events_url":"https://api.github.com/users/arcanis/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T16:22:12Z","updated_at":"2017-06-06T16:22:12Z","body":"Thanks for the report! I'm going to close it in favor of #3490, which I think is the reason you're experiencing this issue."}}
{"actor":{"display_login":"arcanis"}}