Repro example from Yehuda:
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...?
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
FYI I am seeing the same thing with :path dependencies that have other dependencies.
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.
The more general case of this issue is #1138, cross-repo dependencies. It will be fixed in 1.1.pre6.