Commit 49a98e6
committed
Because truffleruby now uses prism itself for its ripper implementation, the templates need to be created beforehand.
So, move the ripper require inside the tasks itself, after which the templates have been created.
Example failure: https://github.com/ruby/prism/actions/runs/24358711087/job/71132405299
```
LoadError: cannot load such file -- /home/runner/work/prism/prism/lib/prism/node (LoadError)
/home/runner/work/prism/prism/lib/prism.rb:127:in '<top (required)>'
/home/runner/work/prism/prism/rakelib/lex.rake:4:in '<top (required)>'
/home/runner/work/prism/prism/vendor/bundle/truffleruby/34.0.0.1/gems/rake-13.3.1/exe/rake:27:in '<top (required)>'
/home/runner/.rubies/truffleruby-34.0.0/bin/bundle:25:in '<main>'
(See full trace by running task with --trace)
```
`lex.rake:4` is `require "ripper"`1 parent 514afff commit 49a98e6
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| |||
0 commit comments