summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorschneems <richard.schneeman+foo@gmail.com>2023-03-16 20:45:18 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-06 15:45:31 +0900
commitd2eef4b7867578df302cfa9d7c97eebbef8d9ee4 (patch)
tree1e882504bc98925ca68c65903ca88b752593a674 /spec
parentd511e6960f4b02731840d4bab381dec73e2c391f (diff)
downloadruby-d2eef4b7867578df302cfa9d7c97eebbef8d9ee4.tar.gz
[ruby/syntax_suggest] Introduce binstubs to set RUBYOPT for development
Because `syntax_suggest` is a default gem you can get conflicts when working on this project with Ruby 3.2+. To fix conflicts you can disable loading `syntax_suggest` as a default gem by using then environment variable `RUBYOPT` with the value `--disable=syntax_suggest`. The `RUBYOPT` environment variable works the same as if we had entered those flags directly in the ruby cli (i.e. `ruby --disable=syntax_suggest` is the same as `RUBYOPT="--disable=syntax_suggest" ruby`). It's needed because we don't always directly execute Ruby and RUBYOPT will be picked up when other commands load ruby (`rspec`, `rake`, or `bundle` etc.). There are some binstubs that already have this done for you. Instead of running `bundle exec rake` you can run `bin/rake`. Binstubs provided: - `bin/rake` - `bin/rspec` https://github.com/ruby/syntax_suggest/commit/342093706d
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions