core: Lock in plugin install of a specific version

This commit is contained in:
Mitchell Hashimoto 2014-04-29 16:53:12 -07:00
parent 92df8cf6ae
commit d90bc9889a
2 changed files with 1 additions and 7 deletions

View File

@ -57,6 +57,7 @@ IMPROVEMENTS:
BUG FIXES:
- core: Adding a box from a network share on Windows works again. [GH-3279]
- commands/plugin/install: Specific versions are now locked in.
- commands/rsync-auto: Interrupt exits properly. [GH-3552]
- commands/rsync-auto: Run properly on Windows. [GH-3547]
- providers/virtualbox: VirtalBox detection works properly again on

View File

@ -72,13 +72,6 @@ module Vagrant
install_lambda.call
end
# If the version constraint is just a specific version, don't
# store the constraint. However, if it is a prerelease version,
# we DO store the constraint to avoid Bundler updating it.
if opts[:version] && opts[:version] =~ /^\d/ && opts[:version] !~ /[a-z]/i
opts.delete(:version)
end
# Add the plugin to the state file
@user_file.add_plugin(
result.name,