summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2022-06-29 16:00:38 -0700
committerMatt Wrock <matt@mattwrock.com>2022-06-29 16:00:38 -0700
commit094a85a95b7101ce0446112a220ca701c5e5ccb6 (patch)
tree929a1c8f1a6bbca86e36c476e788a0f458736a82 /omnibus
parent83fdbf86661ebd63acf5b726de26fcfce7fbe97a (diff)
downloadchef-094a85a95b7101ce0446112a220ca701c5e5ccb6.tar.gz
use new msys2 devkit for windows
Signed-off-by: Matt Wrock <matt@mattwrock.com>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/config/projects/chef.rb6
-rw-r--r--omnibus/omnibus-test.ps14
2 files changed, 4 insertions, 6 deletions
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
index dd22f4654c..94c0236841 100644
--- a/omnibus/config/projects/chef.rb
+++ b/omnibus/config/projects/chef.rb
@@ -62,11 +62,7 @@ dependency "version-manifest"
dependency "openssl-customization"
# devkit needs to come dead last these days so we do not use it to compile any gems
-if windows?
- override :"ruby-windows-devkit", version: "4.5.2-20111229-1559" if windows_arch_i386?
- dependency "ruby-windows-devkit"
- dependency "ruby-windows-devkit-bash"
-end
+dependency "ruby-msys2-devkit" if windows?
dependency "ruby-cleanup"
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 3b7c99c434..2c4331ff2f 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -69,7 +69,9 @@ If ($lastexitcode -ne 0) { Throw $lastexitcode }
& $embedded_bin_dir\rspec.bat --version
If ($lastexitcode -ne 0) { Throw $lastexitcode }
-$Env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;$Env:PATH"
+# We add C:\Program Files\Git\bin to the path to ensure the git bash shell is included
+# Omnibus puts C:\Program Files\Git\mingw64\bin which has git.exe but not bash.exe
+$Env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;C:\Program Files\Git\bin;$Env:PATH"
# Test against the vendored chef gem (cd into the output of "gem which chef")
$chefdir = gem which chef