Skip to content

Commit 4c659a9

Browse files
hsbtclaude
authored andcommitted
[ruby/rubygems] Address review feedback on tmp directory path resolution
Use source_root.parent instead of hardcoded relative path to derive the repository root, so the code remains correct if the support file is ever moved. Also fix the example Gemfile source path in DEBUGGING.md to reflect the new top-level tmp location. ruby/rubygems@b1b039817e Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7b77603 commit 4c659a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/bundler/support/path.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def tmp_root
123123
end
124124
Pathname(real)
125125
else
126-
Pathname.new("../..").expand_path(__dir__).join("tmp")
126+
(ruby_core? ? source_root : source_root.parent).join("tmp")
127127
end
128128
end
129129

0 commit comments

Comments
 (0)