-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler requiring the EXACT version of a dependency when the gemspec has an open-ended constraint. #3285
Comments
Maybe, but the issue is only occuring on Travis (and on mudasobwa's machine if you look at our conversation on SO) - I can't replicate it locally! And I have no idea if or how I can get travis to use an edge version of bundler. I'm on OSX and mudasobwa (and Travis) are both using Linux - could this be relevant? |
I'm having this exact same issue on OSX:
Snippet from paperclip gemspec:
|
In my last comment I was using Ruby 2.1.3 and Bundler 1.7.3. Used RVM to switch to Ruby 2.1.0 and Bundler 1.5.1. Was able to run the same bundle update with no issues. |
@jorihardman can you confirm that upgrading to Bundler 1.7.3 on Ruby 2.1.0 breaks it again? I think this issue is fixed by #3278, which isn't quite done yet. |
I updated to the latest bundler, 1.7.7, using ruby 2.1.0 and the same gemfile and update command as before. Same issue resolving dependencies. |
@jorihardman Can you give me output of
So I can ensure #3278 fixes the issue before we merge it. |
Env is here: https://gist.github.com/jorihardman/d45149b791fdb03bf526 Broken command is |
@jorihardman I can confirm that its fixed with #3278 |
Awesome. Thank you for looking into it! |
Is there any way I can get this PR included in the version of Bundler that's running on my Travis build, or do I have to wait until it's included in the next gem version and Travis themselves upgrade? |
In your Travis pre-build steps, check out the Bundler repo to the commit you want to run, and then run “rake install” inside it.
|
I'm contributing to the Ruby gem koudoku and trying to get it set up with Travis CI - but bundler won't install the required gems. It says there's a compatibility error, but when you look in the gemfiles of the supposedly incompatible gems, you'll see that there shouldn't be any problem.
Here's the error I'm getting on Travis:
The offending lines in the
gemspec
are:I forked the gem and changed the second line so it requires capybara version
>= 2.4.0
, but I still get the exact same error.So the gems must just be incompatible, right? Well, you'd think so, but if you look in Capybara's own gemspec you can see it doesn't state it depends on rack version 1.0.0 exactly. The real dependency is on rack version
>= 1.0.0
.Why is bundler insisting on 1.0.0 exactly when Capybara itself doesn't require this? Surely this is a bug?
I started a StackOverflow question about this same problem - mudasobwa's answer and my conversation with him in the comments might be helpful.
The text was updated successfully, but these errors were encountered: