Commit ac5daa1
Work around JRuby
JRuby's `Thread::Backtrace::Location#absolute_path` returns a relative
path (same as `#path`) when the file was loaded via `load "file.rb"`
(bare relative, no `./` prefix). MRI correctly resolves to full absolute
path. This broke `Pathname#relative_path_from` in schema_artifact_manager.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>absolute_path bug on load with bare relative path.1 parent 2527957 commit ac5daa1
2 files changed
Lines changed: 20 additions & 0 deletions
File tree
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
19 | 35 | | |
20 | 36 | | |
21 | 37 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments