[ruby-core:117694] [Ruby master Bug#20450] Ruby 3.3.1 broken with bootsnap
From:
"shan (Shannon Skipper) via ruby-core" <ruby-core@...>
Date:
2024-04-24 22:40:06 UTC
List:
ruby-core #117694
Issue #20450 has been updated by shan (Shannon Skipper).
For what it's worth, here are some (untested) install scripts using a minimalist version of @eugeneius's patch for ruby-install, rbenv, RVM and asdf.
```sh
ruby-install --patch https://gist.githubusercontent.com/havenwood/57ef01e562bc5ac2939477cc842cc9ad/raw/6680a70b409c/delete_archdir_prefix.patch ruby-3.3.1
```
```sh
rvm install 3.3.1 --patch https://gist.githubusercontent.com/havenwood/57ef01e562bc5ac2939477cc842cc9ad/raw/6680a70b409c/delete_archdir_prefix.patch
```
```ruby
rbenv install --patch 3.3.1 < <(curl -s https://gist.githubusercontent.com/havenwood/57ef01e562bc5ac2939477cc842cc9ad/raw/0509f4df6d7e8e5e4a16eae2ef43f903b2b265d6/delete_archdir_prefix.patch)
```
```sh
RUBY_APPLY_PATCHES=$(curl -s https://gist.githubusercontent.com/havenwood/57ef01e562bc5ac2939477cc842cc9ad/raw/0509f4df6d7e8e5e4a16eae2ef43f903b2b265d6/delete_archdir_prefix.patch) asdf install ruby 3.3.1
```
----------------------------------------
Bug #20450: Ruby 3.3.1 broken with bootsnap
https://bugs.ruby-lang.org/issues/20450#change-108103
* Author: philippe.bs.noel@tutanota.com (Philippe Noel)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
* ruby -v: ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
The issue looks like https://bugs.ruby-lang.org/issues/20060
With the new release of ruby 3.1.1, bootsnap does not work anymore.
```
bin/rails aborted!
ArgumentError: comparison of String with nil failed (ArgumentError)
msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
^^^^^^^^^^
/usr/local/bundle/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
```
It's working with DISABLE_BOOTSNAP=1 with the following message : `warning: parser/current is loading parser/ruby33, which recognizes 3.3.0-compliant syntax, but you are running 3.3.1.`
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/