From: sto.mar@... Date: 2018-11-03T20:37:42+00:00 Subject: [ruby-core:89701] [Ruby trunk Bug#15206] require_relative in std_lib Issue #15206 has been updated by stomar (Marcus Stollsteimer). For `lib/racc/parser.rb` I reverted this in r65514 for the require of `racc/cparse.so` (similar to r65511 for `cgi/escape`). Possibly there might be other C extensions that are required from within `/lib`, where require_relative would not work? (I only had a quick look into `/lib` and `/ext`, and `racc` was as an obvious other case, besides `cgi`, where this problem might occur.) ---------------------------------------- Bug #15206: require_relative in std_lib https://bugs.ruby-lang.org/issues/15206#change-74744 * Author: marcandre (Marc-Andre Lafortune) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- I noticed that there are some `require` for internal files in `lib/`. Ideally, they would be using `require_relative` instead. This is faster and more explicit. Note: `require_relative` had a potential issue with symlinks that was fixed in 2.5, so libraries that might be loaded from earlier Ruby, like `rubygems`, can not yet be updated. I've [created a PR](https://github.com/ruby/ruby/pull/1976) and would like to know if there are comments / objections / things I'm missing. -- https://bugs.ruby-lang.org/ Unsubscribe: