Closed e7d closed 7 years ago
I am seeing the same behaviour with Vagrant 1.8.5 on OSX with only atlas version numbering:
$ vagrant box list
waysact/trusty64 (vmware_desktop, 14)
waysact/trusty64 (vmware_desktop, 17)
waysact/trusty64 (vmware_desktop, 5)
waysact/trusty64 (vmware_desktop, 8)
This issue should be fixed by #7956.
Fixed via #7956 and #8334. Thanks for opening this issue.
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.
Vagrant seems to be inconsistent with version handling, sometimes parsing it correctly as a version number, sometimes processing it as a simple string. In the later case, this causes some erroneous alphabetical comparisons leading to inconsistent reactions. Local file processing seems to use string version, like
vagrant box list
command. Calls to the Atlas platform seem to process version numbers correctly.The best example is with the
vagrant box update
command. First, it will eroneously find the latest version alphabetically, then ask Atlas for the latest one, then utlimately that the one answered correctly by Atlas is actually already installed.Vagrant version
Vagrant 1.8.4
Host operating system
Windows 10 Pro
Guest operating system
Not relevant
Vagrantfile
Debug output
http://pastebin.com/8JWmyf71
Expected behavior
vagrant box list
, vagrant should list versions numerically:vagrant box update
, Vagrant should detect that the boxe7d/neap-box
is the latest version available,v1.2.11
:vagrant up
, Vagrant should detect that the boxe7d/neap-box
is the latest version available, then go on with provisioning:Actual behavior
vagrant box list
, vagrant lists versions alphabetically:vagrant box update
, Vagrant detects that the boxe7d/neap-box
is in versionv1.2.8
. and that the versionv1.2.11
is available. Then, when starting update, Vagrant finds that files are already present forv1.2.11
:vagrant up
, Vagrant detects an available update for the boxe7d/neap-box
, then goes on with provisioning. Box versionv1.2.8
was actually used instead ofv1.2.11
:Steps to reproduce
vagrant box list
and see versions order (alphabetical)vagrant box update
, see vagrant trying to update to latest available version, then fail because files already exists.vagrant up
and see Vagrant advertising about an available update for the latest version, even being already installed.References
None found