Skip to content

Commit

Permalink
[GR-45043] Improvements for the import prism script
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4479
  • Loading branch information
andrykonchin authored and eregon committed Feb 18, 2025
2 parents be122da + acb297e commit aaff490
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/truffle/gems/default-bundled-gems.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ cat Gemfile
# This test only works with no bundle path set
bundle config set --local path.system true

bundle lock
jt ruby -S bundle lock --local

# There is a bug in RubyGems/bundler version vendored in Ruby 3.5 so
# There is a bug in RubyGems/bundler version vendored in Ruby 3.3.5 so
# `bundle install` command ignores the `--local` option and still downloads gems (default ones as well).
# See https://github.com/rubygems/rubygems/issues/8179
# TODO: uncomment this line and regenerate Gemfile.lock with the next updating MRI that have the bug fixed.
Expand Down
2 changes: 2 additions & 0 deletions tool/import-prism.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ gem spec prism.gem --ruby > prism.generated.gemspec
VERSION=$(ruby -e 'puts File.read("prism.generated.gemspec")[/stub: prism ([\d\.]+)/, 1]')
popd

rm lib/gems/specifications/default/prism-*.gemspec # remove a gemspec of the previous version

cp $PRISM/prism.generated.gemspec "lib/gems/specifications/default/prism-$VERSION.gemspec"
rm $PRISM/prism.generated.gemspec
rm $PRISM/prism.gem

0 comments on commit aaff490

Please sign in to comment.