You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was hit by #3769 I noticed a strange behavior from vagrant plugin install: even installing vagrant plugins without any immediate or transitive dependency to nokogiri tries to install/update it.
This was also noticed in devopsgroup-io/vagrant-hostmanager#110 and @sciurus suggested to report this as a separate issue for more visibility.
Here is my original comment from #3769 :
I did a little bit more digging why does vagrant try to upgrade nokogiri when installing a plugin which seemingly doesn't have any dependency for it.
It seems that we are generating a bunch of gemfiles (10 gemfile and 3 lockfile for me) on a simple plugin install (it is already reported at #4103)
But based on my tests, it seems that the unnecessary plugin upgrade is caused by a lockfile, which shouldn't even be loaded according to the commit message in 5197d3d
At least non of the other gem/lockfiles generated by the plugin install command has any reference to the nokogiri 1.6.3.1 version, only to the pre-installed 1.6.2.1.
for testing/reproducing the issue, one should remove any other nokogiri gem from ~./.vagrant.d via
then create a directory for the tmp files (so you don't have to look up your ruby tmpdir and tell apart the old vagrant gem/lockfiles from the ones created in this test)
mkdir vagrant_tmp
then execute a plugin install with a plugin which doesn't have nokogiri dependency, I choose vagrant-hostmanager:
This should be fixed in the next release where we properly cleanup tempfiles. There's also another issue that discusses installing plugins in complete isolation which would completely alleviate this. Thanks! 😄
When I was hit by #3769 I noticed a strange behavior from vagrant plugin install: even installing vagrant plugins without any immediate or transitive dependency to nokogiri tries to install/update it.
This was also noticed in devopsgroup-io/vagrant-hostmanager#110 and @sciurus suggested to report this as a separate issue for more visibility.
Here is my original comment from #3769 :
I did a little bit more digging why does vagrant try to upgrade nokogiri when installing a plugin which seemingly doesn't have any dependency for it.
It seems that we are generating a bunch of gemfiles (10 gemfile and 3 lockfile for me) on a simple plugin install (it is already reported at #4103)
But based on my tests, it seems that the unnecessary plugin upgrade is caused by a lockfile, which shouldn't even be loaded according to the commit message in
5197d3d
At least non of the other gem/lockfiles generated by the plugin install command has any reference to the nokogiri 1.6.3.1 version, only to the pre-installed 1.6.2.1.
for testing/reproducing the issue, one should remove any other nokogiri gem from ~./.vagrant.d via
then create a directory for the tmp files (so you don't have to look up your ruby tmpdir and tell apart the old vagrant gem/lockfiles from the ones created in this test)
then execute a plugin install with a plugin which doesn't have nokogiri dependency, I choose vagrant-hostmanager:
this will trigger the nokogiri install (at least on my system), and leave behind a bunch of files in vagrant_tmp:
but only the vagrant-gemfile (which should be ignore according to @mitchellh's commit refers to the latest nokogiri version.
The text was updated successfully, but these errors were encountered: