Commit c819029
authored
Fix double-prefixed path in outdate-bundled-gems.rb (ruby#16531)
When building with a relative srcdir (e.g., ../configure from a build
directory), default_gem? was called with an already-prefixed path on
line 149. Since default_gem? internally calls prefixed() again, this
resulted in a double prefix (e.g., ../../.bundle/... instead of
../.bundle/...), causing an ENOENT error.
Also fix line 156 to use curdir.default_gem? instead of srcdir, since
the spec comes from curdir.glob and should be resolved against curdir.1 parent 3b8317e commit c819029
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments