Skip to content

Commit 09d5f41

Browse files
committed
Add require "rubygems" before loading win32/registry
Because `ridk enable` runs ruby with "--disable-gems". Otherwise `ridk enable` failes with: ``` C:/Ruby40-arm/lib/ruby/4.0.0/win32/registry.rb:2:in 'Kernel#require': cannot load such file -- fiddle (LoadError) ```
1 parent a92b382 commit 09d5f41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby_installer/build/msys2_installation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def iterate_msys_paths
6565
yield "c:/msys32"
6666

6767
# If msys2 is installed per installer.exe
68+
require "rubygems"
6869
require "win32/registry"
6970
[
7071
[Win32::Registry::HKEY_CURRENT_USER, MSYS2_INSTALL_KEY],

0 commit comments

Comments
 (0)