Dependency resolution with :git gems doesn't work #1016

Closed
indirect opened this Issue Feb 5, 2011 · 6 comments

4 participants

@indirect
Bundler member
@hedgehog

I think I may have this licked.

But before I check to see if this is one of the bugs my patch closes, can you check you are not running into something like issue #1024 which may also just be a duplicate of issue #941...?

@dstrelau

I can confirm this. It seems like bundler is fetching the dependencies for the git repo through the RubyGems API instead of looking at the gemspec in the repo: https://gist.github.com/1038814

@dstrelau

FYI I am seeing the same thing with :path dependencies that have other dependencies.

@cldwalker

I looked into this as it's currently affecting our app on cedar. I tried out @dstrelau's example and noticed that it fails because the gemspecs fetched are for goliath 0.9.1 and aren't the same as the ones that the repository depends on. Specifically, the git repo has a new dependency, http_router, whose gemspec isn't fetched and thus causes the failure. I looked into why this worked on 1.0-stable and it seems its because the rubygems index fetches all of the specs. I'd like to help fix this but not sure where to go as tests are nonexistant around this. This could be fixed in Resolver but perhaps Source::Git should be fetching the specs for git gems.

@indirect
Bundler member
@indirect indirect closed this Aug 5, 2011
@indirect
Bundler member

The more general case of this issue is #1138, cross-repo dependencies. It will be fixed in 1.1.pre6.

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