Skip to content

Instantly share code, notes, and snippets.

@jabenninghoff
Created January 22, 2017 14:50
Show Gist options
  • Save jabenninghoff/a1571ff097f65bade410d7f353d8ceff to your computer and use it in GitHub Desktop.
Save jabenninghoff/a1571ff097f65bade410d7f353d8ceff to your computer and use it in GitHub Desktop.
Script to reproduce bundler issue #5436
#!/bin/sh
set -ex
mkdir -p /tmp/repro-5346
cd /tmp/repro-5346
cat > Gemfile <<EOF
source 'https://rubygems.org'
require 'json'
gem 'rake'
EOF
bundle env
# Bundler 1.14.1
# Rubygems 2.5.2
# Ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]
# Git 2.10.1 (Apple Git-78)
# Platform x86_64-darwin-15
# Expected behavior: should work, works with bundler 1.13.7
# Observerd behavior: bundle install --deployment fails with bundler 1.14.1:
# You are trying to install in deployment mode after changing
# your Gemfile. Run `bundle install` elsewhere and add the
# updated Gemfile.lock to version control.
#
# You have deleted from the Gemfile:
# * json
bundle install --path vendor/bundle
bundle exec rake --version
bundle install --deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment