Bug #13910

[GEM] gem install arvados arvados-cli pulls in two versions of the arvados gem, one of which is old

Added by Ward Vandewege over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
07/26/2018
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-
Release:
Release relationship:
Auto

Description

On a clean system:

$ gem install arvados arvados-cli
Fetching: arvados-1.1.4.20180412190507.gem (100%)
Successfully installed arvados-1.1.4.20180412190507
Parsing documentation for arvados-1.1.4.20180412190507
Installing ri documentation for arvados-1.1.4.20180412190507
Done installing documentation for arvados after 0 seconds
Fetching: arvados-0.1.20180302192246.gem (100%)
Successfully installed arvados-0.1.20180302192246
Fetching: arvados-cli-1.1.4.20180723133344.gem (100%)
Successfully installed arvados-cli-1.1.4.20180723133344
Parsing documentation for arvados-0.1.20180302192246
Installing ri documentation for arvados-0.1.20180302192246
Parsing documentation for arvados-cli-1.1.4.20180723133344
Installing ri documentation for arvados-cli-1.1.4.20180723133344
Done installing documentation for arvados, arvados-cli after 0 seconds
3 gems installed

$ gem list |grep arv
arvados (1.1.4.20180412190507, 0.1.20180302192246)
arvados-cli (1.1.4.20180723133344)

Uninstalling the old one breaks things:


$ gem uninstall arvados -v=0.1.20180302192246

You have requested to uninstall the gem:
    arvados-0.1.20180302192246

arvados-cli-1.1.4.20180723133344 depends on arvados (>= 0.1.20150128223554, ~> 0.1)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Successfully uninstalled arvados-0.1.20180302192246

$ gem list |grep arv
arvados (1.1.4.20180412190507)
arvados-cli (1.1.4.20180723133344)

$ arv user current
/home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'arvados' (>= 0.1.20150128223554, ~> 0.1) - did find: [arvados-1.1.4.20180412190507] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/ward/.rvm/gems/ruby-2.3.6:/home/ward/.rvm/gems/ruby-2.3.6@global', execute `gem env` for more information
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1441:in `block in activate_dependencies'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1430:in `each'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1430:in `activate_dependencies'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1412:in `activate'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in `block in activate_bin_path'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in `synchronize'
    from /home/ward/.rvm/rubies/ruby-2.3.6/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in `activate_bin_path'
    from /home/ward/.rvm/gems/ruby-2.3.6/bin/arv:23:in `<main>'
    from /home/ward/.rvm/gems/ruby-2.3.6/bin/ruby_executable_hooks:15:in `eval'
    from /home/ward/.rvm/gems/ruby-2.3.6/bin/ruby_executable_hooks:15:in `<main>'


Subtasks

Task #13912: Review 13910-arvados-gem-retrievalClosed

Associated revisions

Revision d6c7e295
Added by Lucas Di Pentima over 2 years ago

Merge branch '13910-arvados-gem-retrieval'
Closes #13910

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <>

History

#1 Updated by Ward Vandewege over 2 years ago

  • Status changed from New to In Progress

#2 Updated by Ward Vandewege over 2 years ago

  • Description updated (diff)

#3 Updated by Lucas Di Pentima over 2 years ago

  • Assigned To set to Lucas Di Pentima

#4 Updated by Lucas Di Pentima over 2 years ago

Updates at 22f96cd16 - branch 13910-arvados-gem-retrieval
Test run: https://ci.curoverse.com/job/developer-run-tests/825/

arvados-cli & arvados-login-sync gems used to have '~> 0.1' as an upper bound dependency on the arvados gem, that's why version 1.1.4 wasn't retrieved.

#5 Updated by Ward Vandewege over 2 years ago

Lucas Di Pentima wrote:

Updates at 22f96cd16 - branch 13910-arvados-gem-retrieval
Test run: https://ci.curoverse.com/job/developer-run-tests/825/

arvados-cli & arvados-login-sync gems used to have '~> 0.1' as an upper bound dependency on the arvados gem, that's why version 1.1.4 wasn't retrieved.

This commit LGTM, thanks for the quick fix!

#6 Updated by Ward Vandewege over 2 years ago

  • Target version set to 2018-08-01 Sprint

#7 Updated by Lucas Di Pentima over 2 years ago

  • Status changed from In Progress to Resolved

#8 Updated by Tom Morris about 2 years ago

  • Release set to 13

Also available in: Atom PDF