Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Can't find compatible version for ~> major version. #3669

Closed
jcoyne opened this issue May 19, 2015 · 4 comments
Closed

Can't find compatible version for ~> major version. #3669

jcoyne opened this issue May 19, 2015 · 4 comments

Comments

@jcoyne
Copy link

jcoyne commented May 19, 2015

Bundler could not find compatible versions for gem "mime-types":
  In snapshot (Gemfile.lock):
    mime-types (= 2.5)

  In Gemfile:
    rails (= 4.2.1) ruby depends on
      actionmailer (= 4.2.1) ruby depends on
        mail (>= 2.5.4, ~> 2.5) ruby depends on
          mime-types (< 3, >= 1.16) ruby

    hydra-collections (>= 0) ruby depends on
      hydra-works (~> 0.0.1) ruby depends on
        hydra-derivatives (~> 1.1.0) ruby depends on
          mime-types (~> 1) ruby

I'm using bundler 1.9.9. It seems like it should be able to resolve this conflict.

@jcoyne
Copy link
Author

jcoyne commented May 19, 2015

Here's an even simpler version:

Bundler could not find compatible versions for gem "mime-types":
  In Gemfile:
    hydra-works (>= 0) ruby depends on
      hydra-derivatives (~> 1.1.0) ruby depends on
        mime-types (~> 1) ruby

    mime-types (~> 2.5) ruby

Perhaps it's because the mime-types gem actually has a 2.5 (no patch level) release?

jcoyne added a commit to samvera/hydra-derivatives that referenced this issue May 19, 2015
@segiddins
Copy link
Member

could you please share the output of bundle env so we can try and debug this?

@TimMoore
Copy link
Contributor

@jcoyne what are you expecting ~> 1 to do? Normally, ~> drops a segment off the end of the version.

@jcoyne
Copy link
Author

jcoyne commented May 20, 2015

@TimMoore Perhaps, I'm just using it incorrectly. I guess that => 1 is what I needed.

@jcoyne jcoyne closed this as completed May 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants