Skip to content

Commit

Permalink
Merge pull request #384 from BCarley/wsl-support
Browse files Browse the repository at this point in the history
Added WSL support
  • Loading branch information
tas50 authored Jan 28, 2019
2 parents 7adedca + f97e2ab commit 198a7d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/kitchen/driver/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ class Vagrant < Kitchen::Driver::Base
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

Expand Down

0 comments on commit 198a7d5

Please sign in to comment.