Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unable to install with bundler from git repo #28

Closed
wildchild opened this Issue · 6 comments

3 participants

@wildchild

My Gemfile contains

gem "will_paginate", :git => "git://github.com/mislav/will_paginate.git", :branch => "rails3"

bundle install

/opt/local/lib/ruby/gems/1.8/gems/bundler-0.9.7/lib/bundler/source.rb:242:in `specs': /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- /Users/zven/.bundle/ruby/1.8/cache/bundler/git/will_paginate-6ad077380835d8b425f1d46ebc3ada46214e7bbb/lib/will_paginate/version (LoadError)

Complete useless trace available in this gist

@mislav
Owner

Looks like a Bundler bug, but I'm not sure. Does the supposedly missing ".../will_paginate/version" file exist on your filesystem?

I don't know what "will_paginate-6ad077380835d8b425f1d46ebc3ada46214e7bbb" is. It looks like a git SHA reference to a commit, but this commit doesn't exist in will_paginate. Maybe it's some internal Bundler hash.

@wildchild

Yeah, it seems a bug of bundler. Previous trace related to master branch, the .gemspec is trying to require File.expand_path('../lib/will_paginate/version', FILE).

Rails3 brunch don't use expand_path. Results in "no such file to load -- lib/will_paginate/version". In both cases there are no will-paginate source files at all in bundler's cache. Just git stuff. So we can close this ticket and probably ping carlhuda.

@mislav
Owner

You do that. Closing

@aaronchi

Still not working :(

@mislav
Owner

Changed to use expand_path. Should work now?

@aaronchi

yep :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.