Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Last active March 15, 2016 21:05
Show Gist options
  • Save glennpratt/9a916fed18d0aeea53a9 to your computer and use it in GitHub Desktop.
Save glennpratt/9a916fed18d0aeea53a9 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
# Reproduce bundler issue:
# https://github.com/bundler/bundler/issues/4373
rm -rf /tmp/bundler-GH-4373
mkdir -p /tmp/bundler-GH-4373
cd /tmp/bundler-GH-4373
cat > Gemfile <<EOF
source 'https://rubygems.org'
gem 'vandamme'
group :development do
gem 'rspec'
gem 'thor', github: 'erikhuda/thor'
end
EOF
# Expected:
# ls vendor/bundle/ruby/*/bundler/gems
# Should faile because there are no gems included from VCS.
# Result:
# ls vendor/bundle/ruby/*/bundler/gems
# Lists the thor gem.
bundle install --path vendor/bundle --without development
bundle clean
ls vendor/bundle/ruby/*/bundler/gems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment