Platform regression in 1.1 #1421
Comments
Okay so after checking out this example, I can't get Bundler 1.0 running on jRuby 1.6.4 to behave correctly -- it "updates" to json 1.6.0, which doesn't exist on jruby. So um... ??? |
I think the bundler 1.0 behavior is less-bad, since it's behaving as if the java version didn't exist, as is the case with many gems. Bottom line: tests run and pass on 1.0 and fail on 1.1.pre.8. |
The situation with json is that the 1.6.0 releasr was botched (by me) and since rubygems.org doesn't allow repushing I had to do a 1.6.0.1. That means the only gem that is 1.6.0.1 is the -java version. What should happen is that the newest gem versions overall should always have priority, and if those gems only exist for platforms the current ruby does not support, then choosing am earlier one is ok. This is what RubyGems does, and Bundler should do the same.
On Sep 16, 2011, at 14:32, Andre Arkoreply@reply.github.com wrote:
|
Yeah, I agree that that is the "correct" behaviour. Someday, Bundler will do that. :) On Sep 16, 2011, at 4:13 PM, Charles Oliver Nutter wrote:
|
In
bundler
1.1.pre.8 this Gemfile produces the following Gemfile.lock:Note: there is no non-java platform version of the json gem in the Gemfile.lock. When I try running
bundle exec rake
, I get the error:So, there are a couple problems:
json
1.6.0 and 1.6.0-java; then yanked 1.6.0-java and pushed 1.6.0.1-java, without pushing a 1.6.0.1 (non-java, ruby platform version). That's bad, butbundler
should still be able to find the highest version of thejson
gem that satisfies the dependency for every specified platform (in this case, 1.5.4).If you need me to add something to rubygems.org API to make this work, please create an issue. Thanks!
Blocker! Blocker! Blocker!
The text was updated successfully, but these errors were encountered: