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

Unable to activate json-schema-2.6.2, because addressable-2.4.0 conflicts with addressable (~> 2.3.8) #356

Closed
neilyoung opened this issue Sep 14, 2016 · 7 comments

Comments

@neilyoung
Copy link

Hi,

for some reasons I have addressable 2.3.8 as well as 2.4.0 installed. This leads to the error mentioned above. Do you know a way around?

Regards

@iainbeeston
Copy link
Contributor

Can you please give an example to help us reproduce this? It sounds like you're not using bundler (which should resolve this kind of dependency issue for you)

@iainbeeston
Copy link
Contributor

I'm going to close this for lack of information.

@neilyoung
Copy link
Author

neilyoung commented Oct 1, 2016

Sorry for not responding. I didn't get a notification for your first response.

Yes, I'm using bundler.

The first project, depending on addressable, is "slate" https://github.com/lord/slate. This uses bundler. Then I have an heroku hosted ruby sinatra project, which has a gemfile containing a reference to your json-scheme

gem 'json-schema'

The issue now is, that middleman - a requirement installed with slate - depends on addressable 2.4.0. This confilcts with the a.m. error, whenever I try to test my ruby app locally.

What I'm doing then (and what is a good workaround) is to uninstall addressable 2.4.0 whenever I want to test my ruby script which is using 2.3.8 (w/o further intervention BTW):

gem uninstall addressable --version=2.4.0

Then I'm able to work with your schema. Whenever I need slate again I re-install addressable 2.4.0 by issuing

bundler install

in the slate directory.

Both work, but jus mutually exclusive.

@iainbeeston
Copy link
Contributor

Try json-schema 2.7.0 - that supports addressable 2.4

@neilyoung
Copy link
Author

Right, that fixed it. Thanks

@PeishuaiLee
Copy link

json-schema 2.8.0
s.add_runtime_dependency "addressable", '>= 2.4'
can i use "addressable",'2.3.8' instead

@iainbeeston
Copy link
Contributor

@PeishuaiLee I'm afraid not - addressable 2.4.0 changed the API for some of the addressable methods we use, and supporting both would have added complexity. Addressable 2.4.0 was released over 18 months ago - is something preventing you from upgrading addressable?

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

3 participants