Skip to content

Commit

Permalink
print warning when removing windows generated Gemfile.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolly committed Jan 16, 2013
1 parent 9e82cda commit 29a896d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/language_pack/ruby.rb
Expand Up @@ -369,6 +369,10 @@ def build_bundler
end

if has_windows_gemfile_lock?
topic "WARNING: Removing `Gemfile.lock` because it was generated on Windows."
puts "Bundler will do a full resolve so native gems are handled properly."
puts "This may result in unexpected gem versions being used in your app."

log("bundle", "has_windows_gemfile_lock")
File.unlink("Gemfile.lock")
else
Expand Down

0 comments on commit 29a896d

Please sign in to comment.