Skip to content

Instantly share code, notes, and snippets.

@myronmarston myronmarston/output
Created May 1, 2014

Embed
What would you like to do?
Bundler 1.6.2 --standalone bug
$ ./script.sh
+ rm -rf ./tmp/repro-bundle-standalone-load-path-failure
+ mkdir -p ./tmp/repro-bundle-standalone-load-path-failure
+ cd ./tmp/repro-bundle-standalone-load-path-failure
+ bundle env
Bundler 1.6.2
Ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin12.4.0]
Rubygems 2.0.3
GEM_HOME /Users/myron/.gem/ruby/1.8.7
GEM_PATH /Users/myron/.gem/ruby/1.8.7:/Users/myron/.rubies/ruby-1.8.7-p374/lib/ruby/gems/1.8
Bundler settings
jobs
Set for the current user (/Users/myron/.bundle/config): "4"
Gemfile
<No Gemfile found>
Gemfile.lock
<No Gemfile.lock found>
+ cat
+ bundle install --standalone
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Using bundler 1.6.2
Installing diff-lcs 1.2.5
Your bundle is complete!
It was installed into ./bundle
+ cat
+ ruby use_diff_lcs.rb
use_diff_lcs.rb:3:in `require': no such file to load -- diff/lcs (LoadError)
from use_diff_lcs.rb:3
#!/bin/bash
set -ex
rm -rf ./tmp/repro-bundle-standalone-load-path-failure
mkdir -p ./tmp/repro-bundle-standalone-load-path-failure
cd ./tmp/repro-bundle-standalone-load-path-failure
bundle env
cat > Gemfile <<EOF
source "http://rubygems.org"
gem 'diff-lcs', '1.2.5'
EOF
bundle install --standalone
cat > use_diff_lcs.rb <<EOF
\$LOAD_PATH.unshift File.expand_path("../bundle", __FILE__)
require 'bundler/setup'
require 'diff/lcs'
puts Diff::LCS.name
EOF
ruby use_diff_lcs.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.