carlhuda/bundler — Issue #1610: Gemfile.lock generated on Windows not usable when deploying to Linux
Author: leonid-shevtsov
Created: 2012-01-04 13:13:20+00:00
State: open

I've spent some time trying to figure out why a junior couldn't deploy a fresh Rails project from a Windows machine (using Capistrano and the official bundler plugin).

Turns out, the `Gemfile.lock` contained Windows-only versions of all gems with native extensions, like `nokogiri` or `bcrypt-ruby`, and on Linux the gems weren't loaded into the bundle at all.

The only way to fix this was to check out the project on a Linux machine, run `bundle install` there - which added Linux versions of the gems to the lock file - and push back the changes. Then deployment worked normally from Windows.

This makes developing on a Windows machine and deploying directly to Linux impossible.

I do understand that this issue might be considered un-fixable for architectural issues, but still I consider it a biggie. This at least requires some notice in the manual.

Related: #635, #966