jmitchell / vagrant-bootstrap

0 stars 0 forks source link

Identify and download latest stable version of Vagrant #1

Open jmitchell opened 10 years ago

jmitchell commented 10 years ago

Two potential sources for the latest version:

  1. Inspect the history of version.txt and find the most recent version of that file whose contents matching /^\d+.\d+.\d+$/ (e.g. '1.2.3' but not '1.2.3.dev').
  2. Look up git tags matching the semver regexp above. The github API makes this straightforward.

Then the latest version of the repo can be downloaded via https://github.com/mitchellh/vagrant/archive/#{ SEMVER }.zip. For instance, the most recent version right now is at https://github.com/mitchellh/vagrant/archive/v1.6.3.zip.