gael-ian / vagrant-bindfs

A Vagrant plugin to automate bindfs mount in the VM
MIT License
482 stars 37 forks source link

An error occurred while installing vagrant-bindfs (0.4.11) #55

Closed rafaelsales closed 8 years ago

rafaelsales commented 8 years ago

Versions 0.4.10 and 0.4.11 can only be installed in Vagrant > 1.7.4?

% vagrant --version
Vagrant 1.7.4
% vagrant plugin install vagrant-bindfs
Installing the 'vagrant-bindfs' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing vagrant-bindfs (0.4.11), and Bundler cannot continue.
Make sure that `gem install vagrant-bindfs -v '0.4.11'` succeeds before bundling.

Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::InstallError: vagrant-bindfs requires Ruby version ~> 2.2.
% vagrant plugin install vagrant-bindfs --plugin-version 0.4.10
Installing the 'vagrant-bindfs --version '0.4.10'' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing vagrant-bindfs (0.4.10), and Bundler cannot continue.
Make sure that `gem install vagrant-bindfs -v '0.4.10'` succeeds before bundling.

Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::InstallError: vagrant-bindfs requires Ruby version ~> 2.2.
% vagrant plugin install vagrant-bindfs --plugin-version 0.4.9
Installing the 'vagrant-bindfs --version '0.4.9'' plugin. This can take a few minutes...
Installed the plugin 'vagrant-bindfs (0.4.9)'!
gael-ian commented 8 years ago

Hello,

Since vagrant-bindfs 0.4.10, the gem specification file include explicit requirements for Rubygems > 1.3.6 (as required by Vagrant since 2010) and Ruby > 2.2 (as required for Vagrant >= 1.8.5).

As these are not real requirements for vagrant-bindfs, I can soften them but why not update vagrant ?

sstern6 commented 8 years ago

@gael-ian having issues with vagrant 1.8.7 currently, this would also make it compatible with older versions just in case projects need to be vagrant version specific for any reason. Could be unreasonable, but here is some context. https://github.com/mitchellh/vagrant/issues/8003.

Thanks

gael-ian commented 8 years ago

I downgraded the requirement to Ruby > 2.0.0. This will make the plugin compatible with all versions of Vagrant published since ~ April 2014.

Thanks for reporting

renan commented 8 years ago

I am running Vagrant 1.8.7 (latest version).

Installing vagrant-bindfs version 0.4.12 (latest) it fails with:

renan@demeter:~|⇒  vagrant plugin install vagrant-bindfs
Installing the 'vagrant-bindfs' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing vagrant-bindfs (0.4.12), and Bundler cannot continue.
Make sure that `gem install vagrant-bindfs -v '0.4.12'` succeeds before bundling.

Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::InstallError: vagrant-bindfs requires Ruby version ~> 2.0.0.

When I manually install the previous version (said broken) it works:

renan@demeter:~|⇒  vagrant plugin install vagrant-bindfs --plugin-version 0.4.11
Installing the 'vagrant-bindfs --version '0.4.11'' plugin. This can take a few minutes...
Installed the plugin 'vagrant-bindfs (0.4.11)'!
renan commented 8 years ago

@gael-ian In order for the latest version to work on latest vagrant (which requires ruby >2.2) you need to change vagrant-bindfs.gemspec with:

required_ruby_version = ">= 2.0"

If that's the minimum version.

Here where the problems began.

gael-ian commented 8 years ago

Hi renan,

This is the same exact diagnostic, workaround and cure as discussed in #56. I will be able to fix this in a few days.

Sorry for the inconvenience and thanks for contributing