From 21cacb6eb8b0b10a312c42d37d718091bb11a198 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 23 Nov 2015 09:53:28 -0800 Subject: [PATCH] core: file:/// for windows paths [GH-5288] --- lib/vagrant/action/builtin/box_add.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 6537937da..fbc6bd51f 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -382,6 +382,7 @@ module Vagrant file_path = File.expand_path(url) file_path = Util::Platform.cygwin_windows_path(file_path) file_path = file_path.gsub("\\", "/") + file_path = "/#{file_path}" if !file_path.start_with?("/") url = "file://#{file_path}" end