Skip to content

Stop depending on getconf in env helper specs - #9856

Merged
hsbt merged 1 commit into
masterfrom
claude/fix-getconf-path-mswin-b08620
Sep 4, 2026
Merged

Stop depending on getconf in env helper specs#9856
hsbt merged 1 commit into
masterfrom
claude/fix-getconf-path-mswin-b08620

Conversation

@hsbt

@hsbt hsbt commented Sep 4, 2026

Copy link
Copy Markdown
Member

nmake test-bundler-parallel on mswin fails in spec/runtime/env_helpers_spec.rb with Errno::ENOENT: No such file or directory - getconf PATH. Windows has no getconf, so these two examples only pass when MSYS2 or Git for Windows happens to be on PATH, and neither is a requirement for running the specs.

Even when it did resolve, getconf PATH returned /bin:/usr/bin, so the examples set PATH to a value that means nothing on Windows. They passed only because every command they run is invoked by absolute path.

The examples just need some base PATH to round-trip through BUNDLER_ORIG_PATH, so default_system_path keeps the current PATH on Windows, which also preserves the directories the Ruby under test loads its DLLs from. Verified on mswin: 18 examples, 0 failures.

Generated with Claude Code

Windows has no `getconf`, so these examples raise Errno::ENOENT on
mswin unless MSYS2 or Git for Windows happens to be on PATH. Keep the
current PATH as the base there, which also preserves the directories
the Ruby under test loads its DLLs from.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit f8621fa into master Sep 4, 2026
109 checks passed
@hsbt
hsbt deleted the claude/fix-getconf-path-mswin-b08620 branch September 4, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant