-
Notifications
You must be signed in to change notification settings - Fork 101
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
Upgrade json version to latest #267
Upgrade json version to latest #267
Conversation
@ggiamarchi should I update the .travis.yml to do the following?
or something similar? |
@ggiamarchi my bad! I just saw this PR: #237 Closing... |
I get below error while following your steps. Sorry never worked on ruby bundle Current Bundler version: Could not find gem 'bundler (<= 1.10.5, >= 1.5.2)', which is required by gem 'vagrant', in any of the sources. |
@shubhamrajvanshi The response tells you 2 important things:
Check the content of your Gemfile and ensure there is only one instance of gem "vagrant-openstack-provider"
Your current version of bundler is 1.11.2, which is the latest. The vagrant gem requires any version between 1.5.2 and 1.10.5. So, ensure you have installed the correct version of bundler:
|
it seems like users are still having issues perhaps? this is leading down a dependency headache on multiple systems; at least from what i've tested so far, which is CentOS/Fedora and OSX. i've been looking at this over this for a couple of days, but like eparis mentioned in one his posts (referenced below), I'm not familiar enough with vagrant/ruby enough to contribute anything of value. there are similar dependency issues referenced in #236 #237 #265 #266. as i mentioned in one of the other issues, i don't know if ditching system package managers is really the right approach. is there possibly another solution that could better solve this issue? i'm running into problems on OS X, Fedora, and CentOS so far, and none of the recommendations seemed to work (referring to #236), they just seem to hit on other, more complicated dependency problems. Are there specific instructions for vagrant 1.8 and higher, or was 1.8 the version that seemed to break everything? as i mentioned in #266 going to 1.7.4 seemed to resolve the dependency issue for OS X (but not for CentOS or Fedora), but then i ran into an issue with the plugin couldn't determine the Network ID declared in a Vagrantfile for another repository. kubernetes-retired/contrib#349 (comment) these issues seem a little more complicated to resolve, when compared to other Vagrant plugins i've used in the past (especially for non-ruby users like myself).
|
@v1k0d3n are you trying to use a Ruby version newer than 2.0.0? If so, please try using v2.0.0 since Vagrant is only supporting that version and not newer ones. Because of that, this plugin also doesn't support a newer Ruby version. |
@dandunckelman On OSX (system error as shown above):
|
and this is kind of what i'm referring to, no matter what solution...this takes users down a crazy road of dependency issues. i wish i knew more about ruby and vagrant, so i could even help out...but i just don't. and just to give some background...i blew away everything vagrant related (including some licenses i had) to try and start clean, but it's still failing.
|
Hashicorp's Vagrant 1.8.x packages, released last month, ship Ruby 2.2.3 --- which is why this JSON issue is popping back into the spotlight. |
@Sharpie: how did you solve this ? |
@charlesa101 The changes proposed in this PR resolve the JSON dependency problem. |
oh ok..thank you @Sharpie ...works now! |
@Sharpie I posted that I was running ruby version 2.0.0. |
I wanted to install this plugin with the latest Vagrant (v.1.8.1 when I went to https://www.vagrantup.com/downloads.html) but received errors when bundle tries installing the json gem v1.7.7. So, I figured I'd try getting the install to work with the latest JSON gem.
To do this, I performed the following on an Ubuntu v14.04 VM with Ruby v2.2.2 (via RVM):
Fork repo
Clone repo to my box
Create topic branch
Setup Ruby environment (since I use RVM):
Install specific bundler version (since the Vagrant v1.7.4 gem requires bundler (<= 1.10.5, >= 1.5.2))
Install gems
Run tests
Build as a gem
Install plugin from gem
Then the install worked as expected. I assume that this would fix the following issues: #265 &
#266