New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Dependency with a gem #1504

Closed
clementpadovani opened this Issue Feb 23, 2016 · 6 comments

Comments

Projects
None yet
5 participants
@clementpadovani

clementpadovani commented Feb 23, 2016

UPDATED ISSUE TO ADHERE TO ISSUE TEMPLATE

I'm having a problem or would like to suggest a feature.

My current problem is see below

This issue is related to:

  • Network problems
  • Installing a library
  • Publishing a library
  • The command line gem
  • Other

Here are my current envrionment details:

$ gem env version
2.6.0

I will abide by the code of conduct.

Issue

Hey,

I’m having an issue running the gem synx.

When I run gem update it updated clamp to version 1.0.0 and when I run synx I’ll get the obvious output:

/Library/Ruby/Site/2.0.0/rubygems/specification.rb:2285:in `raise_if_conflicts’: Unable to activate synx-0.2.0, because clamp-1.0.0 conflicts with clamp (~> 0.6) (Gem::ConflictError)

However when I run gem dependency —reverse-dependencies clamp (post-update) I get this:

Gem clamp-0.6.5
  Used by
    synx-0.2.0 (clamp (~> 0.6))

Gem clamp-1.0.0

So basically to run synx I have to uninstall version 1.0.0 after running a gem update.

Is this an issue with my version of RubyGems (2.5.2)?

Here’s my RubyGem environment:

RubyGems Environment:
  - RUBYGEMS VERSION: 2.5.2
  - RUBY VERSION: 2.0.0 (2015-04-13 patchlevel 645) [universal.x86_64-darwin15]
  - INSTALLATION DIRECTORY: /Users/clementpadovani/.gem
  - USER INSTALLATION DIRECTORY: /Users/clementpadovani/.gem/ruby/2.0.0
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/clementpadovani/.gem/bin
  - SPEC CACHE DIRECTORY: /Users/clementpadovani/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-15
  - GEM PATHS:
     - /Users/clementpadovani/.gem
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => true
     - :bulk_threshold => 1000
     - "gem" => "--no-document"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/clementpadovani/.gem/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

Thanks for your help!

original issue venmo/synx#102

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Feb 23, 2016

Member

Try using gem install instead of gem update in the future?

Member

segiddins commented Feb 23, 2016

Try using gem install instead of gem update in the future?

@clementpadovani

This comment has been minimized.

Show comment
Hide comment
@clementpadovani

clementpadovani Feb 23, 2016

@segiddins Hey, thanks for the fast reply.

What do you mean? I currently have synx installed, the issue occurs everytime I want to update my gems.

clementpadovani commented Feb 23, 2016

@segiddins Hey, thanks for the fast reply.

What do you mean? I currently have synx installed, the issue occurs everytime I want to update my gems.

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Feb 23, 2016

Member

What happens if you just run gem uninstall synx && gem install synx?

Member

segiddins commented Feb 23, 2016

What happens if you just run gem uninstall synx && gem install synx?

@clementpadovani

This comment has been minimized.

Show comment
Hide comment
@clementpadovani

clementpadovani Feb 23, 2016

~ gem uninstall synx && gem install synx
Remove executables:
    synx

in addition to the gem? [Yn]  
Removing synx
Successfully uninstalled synx-0.2.0
Fetching: synx-0.2.0.gem (100%)
Successfully installed synx-0.2.0
1 gem installed
➜  ~ gem outdated 
clamp (0.6.5 < 1.0.0)
➜  ~ 

clementpadovani commented Feb 23, 2016

~ gem uninstall synx && gem install synx
Remove executables:
    synx

in addition to the gem? [Yn]  
Removing synx
Successfully uninstalled synx-0.2.0
Fetching: synx-0.2.0.gem (100%)
Successfully installed synx-0.2.0
1 gem installed
➜  ~ gem outdated 
clamp (0.6.5 < 1.0.0)
➜  ~ 
@bronzdoc

This comment has been minimized.

Show comment
Hide comment
@bronzdoc

bronzdoc Feb 26, 2018

Member

@clementpadovani does still happen with the lastest rubygems version? or this stil and issue for you?

Member

bronzdoc commented Feb 26, 2018

@clementpadovani does still happen with the lastest rubygems version? or this stil and issue for you?

@clementpadovani

This comment has been minimized.

Show comment
Hide comment
@clementpadovani

clementpadovani Feb 27, 2018

@bronzdoc issue seems gone, closing!

clementpadovani commented Feb 27, 2018

@bronzdoc issue seems gone, closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment