Skip to content
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

Update to ruby-mime-types breaks git-up #59

Closed
jebaum opened this issue Nov 20, 2013 · 1 comment
Closed

Update to ruby-mime-types breaks git-up #59

jebaum opened this issue Nov 20, 2013 · 1 comment

Comments

@jebaum
Copy link

jebaum commented Nov 20, 2013

Arch just updated the ruby-mime-types package from 1.25 to 2.0

https://www.archlinux.org/packages/community/any/ruby-mime-types/

After upgrading, 'git up' fails with this message:

/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:into_specs': Could not find 'mime-types' (~> 1.15) - did find: mime-types-2.0
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1196:in block in activate_dependencies' from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:ineach'
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:in activate_dependencies' from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1167:inactivate'
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1199:in block in activate_dependencies' from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:ineach'
from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1185:in activate_dependencies' from /usr/lib/ruby/2.0.0/rubygems/specification.rb:1167:inactivate'
from /usr/lib/ruby/2.0.0/rubygems.rb:181:in rescue in try_activate' from /usr/lib/ruby/2.0.0/rubygems.rb:178:intry_activate'
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:109:in rescue in require' from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:inrequire'
from ./bin/git-up:3:in <main>'

Edit: it seems this is actually a problem with grit, which is depending on ~> 1.15 instead of >= 1.15. Changing this manually in the grit gemspec fixed the problem, sorry for false issue.

@aanand
Copy link
Owner

aanand commented Nov 22, 2013

Actually, a >= dependency is almost always a bad idea - grit is probably doing the right thing. But surely this can be fixed by manually installing the older version again, i.e. gem install ruby-mime-types -v 1.25? Both versions should be able to coexist.

@aanand aanand closed this as completed Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants