title: How can I resolve "Your bundle only supports platforms ["x86-mingw32"] but your local platforms are ["ruby", "x86_64-linux"]"
body: <p>I'm building a rails site on a Windows machine but when I check in my Gemfile.lock I get the following error on my Travis builds:</p>
  
  <pre><code>Your bundle only supports platforms ["x86-mingw32"] but your local platforms are ["ruby", "x86_64-linux"], and there's no compatible match between those two
  </code></pre>
  
  <p>lists</p>
  
  <p>Here is the full log: <a href="https://travis-ci.org/bikebike/BikeBike/builds/222395810#L654" rel="noreferrer">https://travis-ci.org/bikebike/BikeBike/builds/222395810#L654</a></p>
  
  <p>I looked at my Gemfile.lock and it states:</p>
  
  <pre><code>PLATFORMS
    x86-mingw32
  </code></pre>
  
  <p>Which appears to be part of the issue. I've tried putting any windows specific gems in a <code>platforms</code> block:</p>
  
  <pre><code>platforms 'mswin', 'mingw', 'mswin64', 'x64_mingw' do
    gem 'tzinfo-data'
  
    group :test do
      gem 'wdm', '&gt;= 0.1.0'
      gem 'win32console', require: false
    end
  end
  </code></pre>
  
  <p>But the Gemfile.lock looks the same.</p>
  
  <p>Here is my full <a href="https://github.com/bikebike/BikeBike/blob/development/Gemfile" rel="noreferrer">Gemfile</a> and <a href="https://github.com/bikebike/BikeBike/blob/development/Gemfile.lock" rel="noreferrer">Gemfile.lock</a>.</p>
  
  <p>I can temporarily get around the issue by removing the Gemfile.lock file from git but this is not best practice. Is there anyway that I can commit my Gemfile.lock file and continue to develop on my Windows machine?</p>