Fix truffleruby CI for 34.0.0 release#4076
Merged
Conversation
…on, 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"`
kddnewton
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lex.rake:4isrequire "ripper"