{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3697","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3697/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3697/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3697/events","html_url":"https://github.com/bundler/bundler/issues/3697","id":83044315,"number":3697,"title":"Do not update BUNDLED WITH if no other changes to the lock happened","user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":43,"created_at":"2015-05-31T09:01:02Z","updated_at":"2015-06-03T07:26:15Z","closed_at":"2015-05-31T16:54:50Z","body":"Running `bundle install` (e.g. as a dev on a project) and having a newer version of bundler, writes that newer version into the lock. This makes the lock dirty, leaving you with the option to 1) make a meaningless commit to bump the bundler version referenced in it or 2) constantly run `git checkout Gemfile.lock` as you switch branches, rebase and so on.\r\n\r\nIf there were no other changes to the lock, we know that the previous version of Bundler was not only working for the lock and the corresponding Gemfile, in fact we know that there's very likely not even the slightest difference in behaviour for it.\r\n\r\nI'm happy to look into a fix if you have some pointers, like where one could decide to not write the lock at all if it wasn't changed."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/108230443","html_url":"https://github.com/bundler/bundler/issues/3697#issuecomment-108230443","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3697","id":108230443,"user":{"login":"chemica","id":431545,"avatar_url":"https://avatars.githubusercontent.com/u/431545?v=3","gravatar_id":"","url":"https://api.github.com/users/chemica","html_url":"https://github.com/chemica","followers_url":"https://api.github.com/users/chemica/followers","following_url":"https://api.github.com/users/chemica/following{/other_user}","gists_url":"https://api.github.com/users/chemica/gists{/gist_id}","starred_url":"https://api.github.com/users/chemica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemica/subscriptions","organizations_url":"https://api.github.com/users/chemica/orgs","repos_url":"https://api.github.com/users/chemica/repos","events_url":"https://api.github.com/users/chemica/events{/privacy}","received_events_url":"https://api.github.com/users/chemica/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T07:26:15Z","updated_at":"2015-06-03T07:26:15Z","body":"For your information:\r\n\r\nIt appears that the message is immediately reappearing after edit or git checkout due to the spring gem. Killing the spring server stops the issue, but will probably slow down development.\r\n\r\nI'm guessing it's looking for any changes to the Gemfile or Gemfile.lock and re-bundling automatically.\r\n\r\nAnother issue we were getting was that the message was being removed by older versions of bundler in use by the team. This obviously increased the amount of mess in the subsequent commits and brought the issue back when we thought we'd buried it."}}