Overcommit Failing with Unknown error (Windows says "The operation completed successfully.", but it did not.)
On executing git commit getting the below Error :
Unknown error (Windows says "The operation completed successfully.", but it did not.)
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/windows/lib.rb:326:in handle_for'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/windows/process_builder.rb:141:in std_stream_handle_for'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/windows/process_builder.rb:113:in setup_io'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/windows/process_builder.rb:32:in start'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/windows/process.rb:70:in launch_process'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/childprocess-4.1.0/lib/childprocess/abstract_process.rb:81:in start'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/overcommit-0.60.0/lib/overcommit/subprocess.rb:38:in spawn'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/overcommit-0.60.0/lib/overcommit/utils.rb:187:in execute'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/overcommit-0.60.0/lib/overcommit/utils.rb:48:in repo_root'
.git/hooks/pre-commit:75:in
I could not reproduce this on current Overcommit. The reported stack is from childprocess 4.1.0's Windows FFI backend (windows/lib.rb and process_builder.rb). Current Overcommit requires childprocess >= 5.0.0 following #898; childprocess 5 replaced that backend with Ruby's Process.spawn in enkessler/childprocess#175, so the reported stack is no longer reachable.
The full subprocess and installed-hook suite passes on current Windows runners with Ruby 3.3, 3.4, and 4.0 in run 42761227542. Closing because the original failure could not be reproduced with the current dependency; the backend replacement may have resolved it. Please update Overcommit and the locked childprocess dependency together.