Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Last active March 24, 2016 22:05
Show Gist options
  • Save glennpratt/064eb845afd59e74df61 to your computer and use it in GitHub Desktop.
Save glennpratt/064eb845afd59e74df61 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
# Reproduce bundler issue:
# https://github.com/bundler/bundler/issues/4392
rm -rf /tmp/bundler-GH-4392
mkdir -p /tmp/bundler-GH-4392
cd /tmp/bundler-GH-4392
cat > Gemfile <<EOF
source 'https://rubygems.org'
gemspec
EOF
cat > my_gem_not.gemspec <<EOF
Gem::Specification.new do |s|
s.name = 'my_gem'
s.version = '0.0.1'
s.author = 'Author'
s.summary = 'Summary'
s.files = []
end
EOF
# Expected:
# bundle package to succeed.
# Result:
# bundle package fails in an apparent infinite loop.
bundle _1.12.0.rc_ package --all
@glennpratt
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment