venmo / synx

A command-line tool that reorganizes your Xcode project folder to match your Xcode groups
MIT License
6.09k stars 274 forks source link

[synx] gem update issue #102

Closed clementpadovani closed 8 years ago

clementpadovani commented 8 years ago

Hey,

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!

siuying commented 8 years ago

Do synx really need 0.6 clamp and xcodeproj 0.28.2 ? I've updated to cocoapods 1.0.0.beta.4 and it conflicted with synx, as cocoapods used a newer version of xcodeproj.

spec.add_dependency "clamp", "~> 0.6" spec.add_dependency "colorize", "~> 0.7" spec.add_dependency "xcodeproj", "~> 0.28.2"

siuying commented 8 years ago

Added #103 to fix this.

clementpadovani commented 8 years ago

Thanks!

Awaiting for #103 to be merged.