Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created January 31, 2014 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save myronmarston/8744226 to your computer and use it in GitHub Desktop.
Save myronmarston/8744226 to your computer and use it in GitHub Desktop.
Repro script for bundle install --standalone failure
#!/bin/bash
set -ex
mkdir -p /tmp/repro-bundle-standalone-failure
cd /tmp/repro-bundle-standalone-failure
bundle env
# Bundler 1.5.2
# Ruby 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.4.0]
# Rubygems 2.0.7
# GEM_HOME /Users/myron/.gem/ruby/1.9.3
# GEM_PATH /Users/myron/.gem/ruby/1.9.3:/Users/myron/.rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1
cat > Gemfile <<EOF
source "http://rubygems.org"
gem 'oj', '1.4.7'
EOF
bundle install --standalone
# Fetching gem metadata from http://rubygems.org/..
# Resolving dependencies...
# Using bundler (1.5.2)
# Installing oj (1.4.7)
# Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
# /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/installer.rb:243:in `block in generate_standalone': undefined method `each' for nil:NilClass (NoMethodError)
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/installer.rb:240:in `generate_standalone'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/installer.rb:101:in `run'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/installer.rb:15:in `install'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/cli.rb:255:in `install'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in `run'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/vendor/thor.rb:363:in `dispatch'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/vendor/thor/base.rb:440:in `start'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/cli.rb:10:in `start'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/bin/bundle:20:in `block in <top (required)>'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
# from /Users/myron/.gem/ruby/1.9.3/gems/bundler-1.5.2/bin/bundle:20:in `<top (required)>'
# from /Users/myron/.gem/ruby/1.9.3/bin/bundle:23:in `load'
# from /Users/myron/.gem/ruby/1.9.3/bin/bundle:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment