Created
May 1, 2014 04:24
-
-
Save myronmarston/5a93e0ed953ba0bb9226 to your computer and use it in GitHub Desktop.
Bundler 1.6.2 --standalone bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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