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

vagrant 2.0.1 and 2.0.2 install old version of plugin #9548

Closed
jennyowen opened this issue Mar 9, 2018 · 4 comments
Closed

vagrant 2.0.1 and 2.0.2 install old version of plugin #9548

jennyowen opened this issue Mar 9, 2018 · 4 comments

Comments

@jennyowen
Copy link

Vagrant version

Vagrant 2.0.2
Vagrant 2.0.1

Host operating system

Ubuntu 16.04

Expected behavior

version 1.0.3 of vagrant-cucumber plugin should be installed. This is what happens with Vagrant 2.0.0.

Actual behavior

version 0.0.9 of vagrant-cucumber plugin is installed.

Steps to reproduce

  1. install vagrant 2.0.2 or 2.0.1
  2. vagrant plugin install vagrant-cucumber

I'm not sure if vagrant is correctly referencing the latest https://rubygems.org. If I query the gem repository from command line, the correct version (1.0.3) is listed.
gem list --remote vagrant-cucumber

I can ping rubygems.org without any problems.

References

This may be related to issue #9516, although I do not see any error messages.

@briancain
Copy link
Member

Hello! Thanks for opening an issue. When opening a new issue on the Vagrant project, we ask that everyone provide a gist containing the behavior you're seeing with the --debug flag included. This helps us figure out what's actually going on.

I just tried to reproduce this with Vagrant 2.0.2 and I got the expected version installed:

vagrant@vagrant:~$ vagrant plugin install vagrant-cucumber
Installing the 'vagrant-cucumber' plugin. This can take a few minutes...
Fetching: open4-1.3.4.gem (100%)
Fetching: Platform-0.4.0.gem (100%)
Fetching: popen4-0.1.2.gem (100%)
Fetching: sahara-0.0.17.gem (100%)
Fetching: to_regexp-0.2.1.gem (100%)
Fetching: cucumber-wire-0.0.1.gem (100%)
Fetching: multi_test-0.1.2.gem (100%)
Fetching: gherkin-4.1.3.gem (100%)
Fetching: diff-lcs-1.3.gem (100%)
Fetching: cucumber-core-1.5.0.gem (100%)
Fetching: cucumber-2.99.0.gem (100%)
Fetching: vagrant-cucumber-1.0.3.gem (100%)
Installed the plugin 'vagrant-cucumber (1.0.3)'!
vagrant@vagrant:~$ vagrant --version
Vagrant 2.0.2

Thanks!

@jennyowen
Copy link
Author

I reinstalled Vagrant 2.0.2 and was able to reproduce the problem. Here is the gist:
https://gist.github.com/jennyowen/47a98016d62007737c6703697d0de121#file-hashicorp-vagrant-issue-9548

I was installing 2.0.2 on top of my existing 2.0.0 installation, and I thought perhaps that could be related to the problem. So to get a cleaner reproduction I uninstalled vagrant 2.0.0 and deleted my entire ~/.vagrant.d folder. I then installed vagrant 2.0.2 and the plugin. The correct version of the plugin was installed the second time.

I went back and tried reproducing what I did originally (i.e. installing vagrant 2.0.2 on top of 2.0.0 with existing plugins), so that I could get you a better gist. I wasn't able to reproduce the problem again though.

@briancain
Copy link
Member

Alright, thanks for the extra information. We have some work in the next release that should prevent this problem in the future anyway. Thanks!

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Mar 30, 2020
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

2 participants