summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-07-06 14:10:46 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-07-11 08:48:43 -0700
commit24b5536e60c6852cdb0affadb7ca06efbcf2d0d9 (patch)
tree1baed1ae64fa30a435de2ea612ff1012171b9df9
parent72a137f86efb37c405ef4601f257b96047a50e4a (diff)
downloadchef-24b5536e60c6852cdb0affadb7ca06efbcf2d0d9.tar.gz
starting to integrate ruby 3.1 into the builds
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--Gemfile7
-rw-r--r--Gemfile.lock107
-rw-r--r--Rakefile4
-rw-r--r--chef-universal-mingw-ucrt.gemspec13
-rw-r--r--chef-universal-mingw32.gemspec22
-rw-r--r--chef-utils/spec/unit/dsl/platform_family_spec.rb2
-rw-r--r--chef.gemspec9
-rw-r--r--knife/knife.gemspec2
-rw-r--r--knife/lib/chef/knife/supermarket_install.rb2
-rw-r--r--lib/chef/provider/group/windows.rb2
-rw-r--r--lib/chef/provider/mount/windows.rb2
-rw-r--r--lib/chef/resource/habitat/habitat_sup_windows.rb2
-rw-r--r--omnibus/Gemfile.lock37
-rw-r--r--omnibus_overrides.rb2
-rw-r--r--post-bundle-install.rb2
-rw-r--r--spec/integration/client/client_spec.rb2
-rw-r--r--spec/support/ruby_installer.rb2
-rw-r--r--tasks/dependencies.rb2
18 files changed, 72 insertions, 149 deletions
diff --git a/Gemfile b/Gemfile
index 8382bd70fc..48cf09f96a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,6 +4,13 @@ gem "chef", path: "."
gem "ohai", git: "https://github.com/chef/ohai.git", branch: "main"
+gem "rest-client", :github => "johnnyshields/rest-client", :branch => "patch-1"
+
+# if RUBY_PLATFORM == "x64-mingw-ucrt"
+# gem "chef-powershell", git: "https://github.com/chef/chef-powershell-shim.git", branch: "jfm/json_bug_fix"
+# gem "win32-api", git: "https://github.com/cosmo0920/win32-api", branch: "master"
+# end
+
gem "chef-utils", path: File.expand_path("chef-utils", __dir__) if File.exist?(File.expand_path("chef-utils", __dir__))
gem "chef-config", path: File.expand_path("chef-config", __dir__) if File.exist?(File.expand_path("chef-config", __dir__))
diff --git a/Gemfile.lock b/Gemfile.lock
index af9d26843d..a36a9db49f 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -32,6 +32,17 @@ GIT
specs:
proxifier (1.0.3)
+GIT
+ remote: https://github.com/johnnyshields/rest-client.git
+ revision: 9ae0cf7e0034c7266591d54768a2c394f3d6c334
+ branch: patch-1
+ specs:
+ rest-client (2.1.0)
+ http-accept (>= 1.7.0, < 2.0)
+ http-cookie (>= 1.0.2, < 2.0)
+ mime-types (>= 1.16, < 4.0)
+ netrc (~> 0.8)
+
PATH
remote: .
specs:
@@ -39,41 +50,7 @@ PATH
addressable
aws-sdk-s3 (~> 1.91)
aws-sdk-secretsmanager (~> 1.46)
- chef-config (= 18.0.130)
- chef-utils (= 18.0.130)
- chef-vault
- chef-zero (>= 14.0.11)
- corefoundation (~> 0.3.4)
- diff-lcs (>= 1.2.4, < 1.6.0, != 1.4.0)
- erubis (~> 2.7)
- ffi (>= 1.5.0)
- ffi-libarchive (~> 1.0, >= 1.0.3)
- ffi-yajl (~> 2.2)
- iniparse (~> 1.4)
- inspec-core (~> 4.23)
- license-acceptance (>= 1.0.5, < 3)
- mixlib-archive (>= 0.4, < 2.0)
- mixlib-authentication (>= 2.1, < 4)
- mixlib-cli (>= 2.1.1, < 3.0)
- mixlib-log (>= 2.0.3, < 4.0)
- mixlib-shellout (>= 3.1.1, < 4.0)
- net-ftp
- net-sftp (>= 2.1.2, < 4.0)
- ohai (~> 18.0)
- plist (~> 3.2)
- proxifier (~> 1.0)
- syslog-logger (~> 1.6)
- train-core (~> 3.2, >= 3.2.28)
- train-rest (>= 0.4.1)
- train-winrm (>= 0.2.5)
- unf_ext (< 0.0.8.1)
- uuidtools (>= 2.1.5, < 3.0)
- vault (~> 0.16)
- chef (18.0.130-universal-mingw32)
- addressable
- aws-sdk-s3 (~> 1.91)
- aws-sdk-secretsmanager (~> 1.46)
- chef-config (= 18.0.130)
+ chef-config (= 18.0.127)
chef-powershell (~> 1.0.12)
chef-utils (= 18.0.130)
chef-vault
@@ -86,7 +63,6 @@ PATH
ffi-yajl (~> 2.2)
iniparse (~> 1.4)
inspec-core (~> 4.23)
- iso8601 (>= 0.12.1, < 0.14)
license-acceptance (>= 1.0.5, < 3)
mixlib-archive (>= 0.4, < 2.0)
mixlib-authentication (>= 2.1, < 4)
@@ -105,16 +81,9 @@ PATH
unf_ext (< 0.0.8.1)
uuidtools (>= 2.1.5, < 3.0)
vault (~> 0.16)
- win32-api (~> 1.5.3)
- win32-certstore (~> 0.6.10)
- win32-event (~> 0.6.1)
- win32-eventlog (= 0.6.3)
+ win32-api (~> 1.10.0)
win32-mmap (~> 0.4.1)
win32-mutex (~> 0.4.2)
- win32-process (~> 0.9)
- win32-service (>= 2.1.5, < 3.0)
- win32-taskscheduler (~> 2.0)
- wmi-lite (~> 1.0)
PATH
remote: chef-bin
@@ -222,8 +191,6 @@ GEM
net-ssh
ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt)
- ffi (1.15.5-x64-mingw32)
- ffi (1.15.5-x86-mingw32)
ffi-libarchive (1.1.3)
ffi (~> 1.0)
ffi-win32-extensions (1.0.4)
@@ -269,7 +236,6 @@ GEM
inspec-core-bin (4.56.20)
inspec-core (= 4.56.20)
ipaddress (0.8.3)
- iso8601 (0.13.0)
jmespath (1.6.1)
json (2.6.2)
libyajl2 (2.1.0)
@@ -288,8 +254,6 @@ GEM
mime-types-data (3.2022.0105)
mixlib-archive (1.1.7)
mixlib-log
- mixlib-archive (1.1.7-universal-mingw32)
- mixlib-log
mixlib-authentication (3.0.10)
mixlib-cli (2.1.8)
mixlib-config (3.0.27)
@@ -297,11 +261,6 @@ GEM
mixlib-log (3.0.9)
mixlib-shellout (3.2.7)
chef-utils
- mixlib-shellout (3.2.7-universal-mingw32)
- chef-utils
- ffi-win32-extensions (~> 1.0.3)
- win32-process (~> 0.9)
- wmi-lite (~> 1.0)
mixlib-shellout (3.2.7-x64-mingw-ucrt)
chef-utils
ffi-win32-extensions (~> 1.0.3)
@@ -338,28 +297,11 @@ GEM
binding_of_caller (~> 1.0)
pry (~> 0.13)
public_suffix (4.0.7)
- rack (2.2.3.1)
+ rack (2.2.4)
rainbow (3.1.1)
rake (13.0.6)
rb-readline (0.5.5)
regexp_parser (2.5.0)
- rest-client (2.1.0)
- http-accept (>= 1.7.0, < 2.0)
- http-cookie (>= 1.0.2, < 2.0)
- mime-types (>= 1.16, < 4.0)
- netrc (~> 0.8)
- rest-client (2.1.0-x64-mingw32)
- ffi (~> 1.9)
- http-accept (>= 1.7.0, < 2.0)
- http-cookie (>= 1.0.2, < 2.0)
- mime-types (>= 1.16, < 4.0)
- netrc (~> 0.8)
- rest-client (2.1.0-x86-mingw32)
- ffi (~> 1.9)
- http-accept (>= 1.7.0, < 2.0)
- http-cookie (>= 1.0.2, < 2.0)
- mime-types (>= 1.16, < 4.0)
- netrc (~> 0.8)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
@@ -399,7 +341,6 @@ GEM
unicode-display_width (>= 1.5, < 3.0)
unicode_utils (~> 1.4)
strings-ansi (0.2.0)
- structured_warnings (0.4.0)
syslog-logger (1.6.8)
thor (1.2.1)
time (0.2.0)
@@ -451,14 +392,7 @@ GEM
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.7.0)
- win32-api (1.5.3-universal-mingw32)
- win32-certstore (0.6.15)
- chef-powershell (>= 1.0.12)
- ffi
- win32-event (0.6.3)
- win32-ipc (>= 0.6.0)
- win32-eventlog (0.6.3)
- ffi
+ win32-api (1.10.1)
win32-ipc (0.7.0)
ffi
win32-mmap (0.4.2)
@@ -467,12 +401,6 @@ GEM
win32-ipc (>= 0.6.0)
win32-process (0.10.0)
ffi (>= 1.0.0)
- win32-service (2.3.2)
- ffi
- ffi-win32-extensions
- win32-taskscheduler (2.0.4)
- ffi
- structured_warnings
winrm (2.3.6)
builder (>= 2.1.2)
erubi (~> 1.8)
@@ -497,8 +425,6 @@ GEM
PLATFORMS
ruby
x64-mingw-ucrt
- x64-mingw32
- x86-mingw32
DEPENDENCIES
appbundler
@@ -519,8 +445,9 @@ DEPENDENCIES
pry-stack_explorer
rake
rb-readline
+ rest-client!
rspec
webmock
BUNDLED WITH
- 2.3.12
+ 2.3.17
diff --git a/Rakefile b/Rakefile
index 17c6a62ca8..193f1772c1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -63,7 +63,9 @@ end
task install: "pre_install:all"
# make sure we build the correct gemspec on windows
-gemspec = Gem.win_platform? ? "chef-universal-mingw32" : "chef"
+gemspec = Gem.win_platform? ? "chef-universal-mingw-ucrt" : "chef"
+# require "pry"
+# binding.pry
Bundler::GemHelper.install_tasks name: gemspec
# this gets appended to the normal bundler install helper
diff --git a/chef-universal-mingw-ucrt.gemspec b/chef-universal-mingw-ucrt.gemspec
index 4b59ec5fc4..5edf8a6413 100644
--- a/chef-universal-mingw-ucrt.gemspec
+++ b/chef-universal-mingw-ucrt.gemspec
@@ -2,21 +2,22 @@ gemspec = eval(IO.read(File.expand_path("chef.gemspec", __dir__)))
gemspec.platform = Gem::Platform.new(%w{x64-mingw-ucrt})
-gemspec.add_dependency "win32-api", "~> 1.5.3"
+# gemspec.add_dependency "win32-api", "~> 1.10.0"
gemspec.add_dependency "win32-event", "~> 0.6.1"
# TODO: Relax this pin and make the necessary updaets. The issue originally
# leading to this pin has been fixed in 0.6.5.
gemspec.add_dependency "win32-eventlog", "0.6.3"
-gemspec.add_dependency "win32-mmap", "~> 0.4.1"
-gemspec.add_dependency "win32-mutex", "~> 0.4.2"
+# gemspec.add_dependency "win32-mmap", "~> 0.4.1"
+# gemspec.add_dependency "win32-mutex", "~> 0.4.2"
gemspec.add_dependency "win32-process", "~> 0.9"
-gemspec.add_dependency "win32-service", ">= 2.1.5", "< 3.0"
+# gemspec.add_dependency "win32-service", ">= 2.1.5", "< 3.0"
gemspec.add_dependency "wmi-lite", "~> 1.0"
gemspec.add_dependency "win32-taskscheduler", "~> 2.0"
gemspec.add_dependency "iso8601", ">= 0.12.1", "< 0.14" # validate 0.14 when it comes out
-gemspec.add_dependency "win32-certstore", "~> 0.6.10" # 0.5+ required for specifying user vs. system store
-gemspec.add_dependency "chef-powershell", "~> 1.0.12" # The guts of the powershell_exec code have been moved to its own gem, chef-powershell. It's part of the chef-powershell-shim repo.
+gemspec.add_dependency "win32-certstore", "~> 0.6.15" # 0.5+ required for specifying user vs. system store
+# gemspec.add_dependency "chef-powershell", "~> 1.0.12" # The guts of the powershell_exec code have been moved to its own gem, chef-powershell. It's part of the chef-powershell-shim repo.
gemspec.extensions << "ext/win32-eventlog/Rakefile"
gemspec.files += Dir.glob("{distro,ext}/**/*")
+gemspec.required_ruby_version = '>= 3.1.0'
gemspec
diff --git a/chef-universal-mingw32.gemspec b/chef-universal-mingw32.gemspec
deleted file mode 100644
index 5e3c71c553..0000000000
--- a/chef-universal-mingw32.gemspec
+++ /dev/null
@@ -1,22 +0,0 @@
-gemspec = eval(IO.read(File.expand_path("chef.gemspec", __dir__)))
-
-gemspec.platform = Gem::Platform.new(%w{universal mingw32})
-
-gemspec.add_dependency "win32-api", "~> 1.5.3"
-gemspec.add_dependency "win32-event", "~> 0.6.1"
-# TODO: Relax this pin and make the necessary updaets. The issue originally
-# leading to this pin has been fixed in 0.6.5.
-gemspec.add_dependency "win32-eventlog", "0.6.3"
-gemspec.add_dependency "win32-mmap", "~> 0.4.1"
-gemspec.add_dependency "win32-mutex", "~> 0.4.2"
-gemspec.add_dependency "win32-process", "~> 0.9"
-gemspec.add_dependency "win32-service", ">= 2.1.5", "< 3.0"
-gemspec.add_dependency "wmi-lite", "~> 1.0"
-gemspec.add_dependency "win32-taskscheduler", "~> 2.0"
-gemspec.add_dependency "iso8601", ">= 0.12.1", "< 0.14" # validate 0.14 when it comes out
-gemspec.add_dependency "win32-certstore", "~> 0.6.10" # 0.5+ required for specifying user vs. system store
-gemspec.add_dependency "chef-powershell", "~> 1.0.12" # The guts of the powershell_exec code have been moved to its own gem, chef-powershell. It's part of the chef-powershell-shim repo.
-gemspec.extensions << "ext/win32-eventlog/Rakefile"
-gemspec.files += Dir.glob("{distro,ext}/**/*")
-
-gemspec
diff --git a/chef-utils/spec/unit/dsl/platform_family_spec.rb b/chef-utils/spec/unit/dsl/platform_family_spec.rb
index c4363c8e8d..a2f268e307 100644
--- a/chef-utils/spec/unit/dsl/platform_family_spec.rb
+++ b/chef-utils/spec/unit/dsl/platform_family_spec.rb
@@ -210,7 +210,7 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
end
context "node-independent windows APIs" do
- if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
+ if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
it "reports true for :windows_ruby?" do
expect(described_class.windows_ruby?).to be true
end
diff --git a/chef.gemspec b/chef.gemspec
index e6ccf91744..eeca2aee77 100644
--- a/chef.gemspec
+++ b/chef.gemspec
@@ -22,7 +22,14 @@ Gem::Specification.new do |s|
s.email = "adam@chef.io"
s.homepage = "https://www.chef.io"
- s.required_ruby_version = ">= 2.6.0"
+ s.required_ruby_version = ">= 3.1.0"
+
+ if RUBY_PLATFORM == "x64-mingw-ucrt"
+ s.add_dependency "win32-mmap", "~> 0.4.1"
+ s.add_dependency "win32-mutex", "~> 0.4.2"
+ s.add_dependency "chef-powershell", "~> 1.0.12"
+ s.add_dependency "win32-api", "~> 1.10.0"
+ end
s.add_dependency "chef-config", "= #{Chef::VERSION}"
s.add_dependency "chef-utils", "= #{Chef::VERSION}"
diff --git a/knife/knife.gemspec b/knife/knife.gemspec
index 445ab92b44..0407e89ea3 100644
--- a/knife/knife.gemspec
+++ b/knife/knife.gemspec
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_dependency "license-acceptance", ">= 1.0.5", "< 3"
s.add_dependency "mixlib-cli", ">= 2.1.1", "< 3.0"
s.add_dependency "mixlib-archive", ">= 0.4", "< 2.0"
- s.add_dependency "ohai", ">= 17.0", "< 19"
+ s.add_dependency "ohai", "~> 18.0"
s.add_dependency "ffi", ">= 1.15" # 1.14 versions are broken on i386 windows
s.add_dependency "ffi-yajl", "~> 2.2"
s.add_dependency "net-ssh", ">= 5.1", "< 7"
diff --git a/knife/lib/chef/knife/supermarket_install.rb b/knife/lib/chef/knife/supermarket_install.rb
index c979a4d6f4..91b71df9ff 100644
--- a/knife/lib/chef/knife/supermarket_install.rb
+++ b/knife/lib/chef/knife/supermarket_install.rb
@@ -156,7 +156,7 @@ class Chef
def convert_path(upstream_file)
# converts a Windows path (C:\foo) to a mingw path (/c/foo)
- if ENV["MSYSTEM"] == "MINGW32"
+ if ENV["MSYSTEM"] == ( "MINGW32" || "UCRT64" )
upstream_file.sub(/^([[:alpha:]]):/, '/\1')
else
Shellwords.escape upstream_file
diff --git a/lib/chef/provider/group/windows.rb b/lib/chef/provider/group/windows.rb
index dacfc348f7..e0fc3b6034 100644
--- a/lib/chef/provider/group/windows.rb
+++ b/lib/chef/provider/group/windows.rb
@@ -17,7 +17,7 @@
#
require_relative "../user"
-if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
+if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
require_relative "../../util/windows/net_group"
end
diff --git a/lib/chef/provider/mount/windows.rb b/lib/chef/provider/mount/windows.rb
index 5b68417ab0..c5d29245c2 100644
--- a/lib/chef/provider/mount/windows.rb
+++ b/lib/chef/provider/mount/windows.rb
@@ -17,7 +17,7 @@
#
require_relative "../mount"
-if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
+if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
require_relative "../../util/windows/net_use"
require_relative "../../util/windows/volume"
end
diff --git a/lib/chef/resource/habitat/habitat_sup_windows.rb b/lib/chef/resource/habitat/habitat_sup_windows.rb
index 1c574025d2..1757ea8e3b 100644
--- a/lib/chef/resource/habitat/habitat_sup_windows.rb
+++ b/lib/chef/resource/habitat/habitat_sup_windows.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require "win32/service" if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
+require "win32/service" if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
require_relative "habitat_sup"
class Chef
diff --git a/omnibus/Gemfile.lock b/omnibus/Gemfile.lock
index 784153a17e..6aec641873 100644
--- a/omnibus/Gemfile.lock
+++ b/omnibus/Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/chef/omnibus-software.git
- revision: a9b13a09c2f89e4618225dd41b2fd08f2150a1ba
+ revision: 7bb8c7b4fd2cc5829fba9d52df1dac683fd88069
branch: main
specs:
omnibus-software (4.0.0)
@@ -17,7 +17,7 @@ GIT
chef-utils (>= 15.4)
contracts (>= 0.16.0, < 0.17.0)
ffi-yajl (~> 2.2)
- license_scout (~> 1.3)
+ license_scout (~> 1.0)
mixlib-shellout (>= 2.0, < 4.0)
mixlib-versioning
ohai (>= 15, < 18)
@@ -34,8 +34,8 @@ GEM
artifactory (3.0.15)
awesome_print (1.9.2)
aws-eventstream (1.2.0)
- aws-partitions (1.594.0)
- aws-sdk-core (3.131.1)
+ aws-partitions (1.603.0)
+ aws-sdk-core (3.131.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
@@ -47,15 +47,13 @@ GEM
aws-sdk-core (~> 3, >= 3.127.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
- aws-sdk-secretsmanager (1.62.0)
+ aws-sdk-secretsmanager (1.64.0)
aws-sdk-core (~> 3, >= 3.127.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.5.0)
aws-eventstream (~> 1, >= 1.0.2)
bcrypt_pbkdf (1.1.0)
- bcrypt_pbkdf (1.1.0-x64-mingw32)
- bcrypt_pbkdf (1.1.0-x86-mingw32)
- berkshelf (8.0.1)
+ berkshelf (8.0.2)
chef (>= 15.7.32)
chef-config
cleanroom (~> 1.0)
@@ -240,7 +238,7 @@ GEM
iso8601 (0.13.0)
jmespath (1.6.1)
json (2.6.2)
- kitchen-vagrant (1.11.0)
+ kitchen-vagrant (1.12.0)
test-kitchen (>= 1.4, < 4)
libyajl2 (2.1.0)
license-acceptance (2.1.13)
@@ -264,9 +262,9 @@ GEM
mixlib-log
mixlib-authentication (3.0.10)
mixlib-cli (2.1.8)
- mixlib-config (3.0.9)
+ mixlib-config (3.0.27)
tomlrb
- mixlib-install (3.12.16)
+ mixlib-install (3.12.19)
mixlib-shellout
mixlib-versioning
thor
@@ -286,7 +284,7 @@ GEM
mixlib-versioning (1.2.12)
molinillo (0.8.0)
multi_json (1.15.0)
- multipart-post (2.1.1)
+ multipart-post (2.2.3)
net-scp (3.0.0)
net-ssh (>= 2.6.5, < 7.0.0)
net-sftp (3.0.0)
@@ -295,7 +293,7 @@ GEM
net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0)
nori (2.6.0)
- octokit (4.23.0)
+ octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
ohai (17.9.0)
@@ -327,7 +325,7 @@ GEM
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.7)
- rack (2.2.3.1)
+ rack (2.2.4)
rainbow (3.1.1)
retryable (3.0.5)
rexml (3.2.5)
@@ -351,7 +349,7 @@ GEM
ruby2_keywords (0.0.5)
rubyntlm (0.6.3)
rubyzip (2.3.2)
- sawyer (0.9.1)
+ sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
semverse (3.0.2)
@@ -366,7 +364,7 @@ GEM
strings-ansi (0.2.0)
structured_warnings (0.4.0)
syslog-logger (1.6.8)
- test-kitchen (3.2.2)
+ test-kitchen (3.3.1)
bcrypt_pbkdf (~> 1.0)
chef-utils (>= 16.4.35)
ed25519 (~> 1.2)
@@ -384,7 +382,7 @@ GEM
toml-rb (2.1.2)
citrus (~> 3.0, > 3.0)
tomlrb (1.3.0)
- train-core (3.9.2)
+ train-core (3.10.1)
addressable (~> 2.5)
ffi (!= 1.13.0)
json (>= 1.8, < 3.0)
@@ -413,7 +411,7 @@ GEM
pastel (~> 0.8)
strings (~> 0.2.0)
tty-screen (~> 0.8)
- unicode-display_width (2.1.0)
+ unicode-display_width (2.2.0)
unicode_utils (1.4.0)
uuidtools (2.2.0)
vault (0.17.0)
@@ -466,6 +464,7 @@ GEM
PLATFORMS
ruby
x64-mingw
+ x64-mingw-ucrt
x64-mingw32
x86-mingw32
@@ -480,4 +479,4 @@ DEPENDENCIES
winrm-fs (~> 1.0)
BUNDLED WITH
- 2.3.12
+ 2.3.7
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb
index ca019fded4..df5073451b 100644
--- a/omnibus_overrides.rb
+++ b/omnibus_overrides.rb
@@ -20,7 +20,7 @@ override "ncurses", version: "6.3"
override "nokogiri", version: "1.13.1"
override "openssl", version: mac_os_x? ? "1.1.1m" : "1.0.2zb"
override "pkg-config-lite", version: "0.28-1"
-override :ruby, version: aix? ? "3.0.3" : "3.1.2"
+override :ruby, version: aix? ? "3.0.3" : "3.1.23"
override "ruby-windows-devkit-bash", version: "3.1.23-4-msys-1.0.18"
override "util-macros", version: "1.19.0"
override "xproto", version: "7.0.28"
diff --git a/post-bundle-install.rb b/post-bundle-install.rb
index 86a530bffd..ca064dbf2e 100644
--- a/post-bundle-install.rb
+++ b/post-bundle-install.rb
@@ -18,7 +18,7 @@ Dir["#{gem_home}/bundler/gems/*"].each do |gempath|
next unless gem_name
# FIXME: should omit the gem which is in the current directory and not hard code chef
- next if %w{chef chef-universal-mingw32}.include?(gem_name)
+ next if %w{chef chef-universal-ucrt}.include?(gem_name)
puts "re-installing #{gem_name}..."
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index 1bd84fa940..f4ed5a69d7 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -688,6 +688,8 @@ describe "chef-client" do
end
it "the chef client run should succeed" do
+ require "pry"
+ binding.pry
command = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" -o 'x::default' --no-fork", cwd: chef_dir)
command.error!
end
diff --git a/spec/support/ruby_installer.rb b/spec/support/ruby_installer.rb
index d03525268f..316f3a042d 100644
--- a/spec/support/ruby_installer.rb
+++ b/spec/support/ruby_installer.rb
@@ -48,4 +48,4 @@ rescue LoadError
$stderr.puts "Failed to load ruby_installer. Assuming Ruby Installer is not being used."
end
-add_libarchive_dll_directory if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
+add_libarchive_dll_directory if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index f83b1c356c..8936203119 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -33,7 +33,7 @@ namespace :dependencies do
Dir.chdir(dir) do
Bundler.with_unbundled_env do
rm_f "#{dir}/Gemfile.lock"
- sh "bundle lock --update --add-platform ruby x64-mingw32 x86-mingw32"
+ sh "bundle lock --update --add-platform ruby x64-mingw-ucrt"
end
end
end