lib/kitchen/driver/vagrant.rb in kitchen-vagrant-1.3.6 vs lib/kitchen/driver/vagrant.rb in kitchen-vagrant-1.4.0

- old
+ new

@@ -90,11 +90,14 @@ default_config(:cache_directory) do |driver| driver.windows_os? ? "/omnibus/cache" : "/tmp/omnibus/cache" end + # for use with vagrant on WSL + user_home = ENV["VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH"].nil? ? "~" : ENV["VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH"] + default_config :kitchen_cache_directory, - File.expand_path("~/.kitchen/cache") + File.expand_path("#{user_home}/.kitchen/cache") default_config :cachier, nil no_parallel_for :create, :destroy