Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Gemfile pointed at a gemspec won't upgrade? #2072

Closed
jordansissel opened this Issue · 8 comments

3 participants

@jordansissel

Apologies if the title of this ticket is confusing, I don't really know how to describe it ;)

Short story: I couldn't figure out how to tell bundler to upgrade the version of the gemspec it was pointed at. I had to hand-edit the Gemfile.lock to resolve this situation. Yes, I am aware that hand-editing of this file is not supported. I am interested in what solution I can use next time this happens.

Specific data and reproducing it: https://gist.github.com/49e37182c5bec863d18e

Me hand-patching my Gemfile.lock: elastic/logstash@ebb90d3

Bug? PEBCAK? :)

@indirect
Owner

Sorry, this is going to be hard for me to reproduce without access to the logstash git repo... is that public somewhere? There are some other comments that might be useful (although honestly probably not) in ISSUES.

@jordansissel

Yup, https://github.com/logstash/logstash

Relevant commits:

  • working (post hand-patch): ebb90d326b86143baff7e7bbd6b4409f951c613a
  • not working (pre hand-patch): 07c846e7869fb36e54f9888f73c26a944f4166f4
@jordansissel

Tested again with Ruby 1.9.3 and JRuby 1.6.7 -

sandwich(~/projects/logstash) % rvm 1.9.3 do bundle install
Using cinch (2.0.3) 
Using excon (0.14.3) 
Using metaclass (0.0.1) 
Using mocha (0.11.4) 
Using shoulda-context (1.0.0) 
Using shoulda-matchers (1.0.0) 
Using shoulda (3.0.1) 
Using bundler (1.1.5) 
Your bundle is complete! It was installed into ./vendor/bundle
sandwich(~/projects/logstash) % JRUBY_OPTS=--1.9 rvm 1.6.7 do bundle install                             
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Could not find logstash-1.1.1.rc3-java in any of the sources
@jordansissel

Both tests were using bundler 1.1.5

% JRUBY_OPTS=--1.9 rvm 1.9.3,1.6.7 do gem list bundler | grep bundler
bundler (1.1.5)
bundler (1.1.5)
@jordansissel

seems to only affect jruby?

@jordansissel
% JRUBY_OPTS=--1.9 rvm 1.9.3,1.6.7 do gem --version                  
1.8.24
1.8.15
@jordansissel

Upgraded to rubygems 1.8.24 with no resolution

@xaviershay
Collaborator

Closing, stale. Please do re-open with a repro on recent bundler, script like this one preferred: https://gist.github.com/xaviershay/6207550

@xaviershay xaviershay closed this
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.