ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:105294] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again
@ 2021-09-16  9:47 nobu (Nobuyoshi Nakada)
  2021-10-03  7:33 ` [ruby-core:105526] " nagachika (Tomoyuki Chikanaga)
  2021-11-24 10:35 ` [ruby-core:106260] " usa (Usaku NAKAMURA)
  0 siblings, 2 replies; 3+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2021-09-16  9:47 UTC (permalink / raw)
  To: ruby-core

Issue #18173 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #18173: The feature in `$LOADED_FEATURES` is loaded again
https://bugs.ruby-lang.org/issues/18173

* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Backport: 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED
----------------------------------------
In general, the feature name registered in `$LOADED_FEATURES` (e.g. "enumerator.so", "thread.rb", and so on) is expected not to be loaded again.

But, as @ko1 reported, when a feature name is added to the variable during another file is required, it will be loaded again.

```shell
$ echo 'raise __FILE__' > target.rb
$ echo '$" << "target.rb"' > provide.rb
$ ruby -r./provide.rb target.rb 
target.rb:1:in `<main>': target.rb (RuntimeError)
```




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:105526] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again
  2021-09-16  9:47 [ruby-core:105294] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again nobu (Nobuyoshi Nakada)
@ 2021-10-03  7:33 ` nagachika (Tomoyuki Chikanaga)
  2021-11-24 10:35 ` [ruby-core:106260] " usa (Usaku NAKAMURA)
  1 sibling, 0 replies; 3+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2021-10-03  7:33 UTC (permalink / raw)
  To: ruby-core

Issue #18173 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.6: REQUIRED, 2.7: REQUIRED, 3.0: REQUIRED to 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE

ruby_3_0 5341eca588e738cd5031ab7d8bb5c300471c00e9 merged revision(s) ddb32e66160ab50849419ef7c7ac584913b79c34.

----------------------------------------
Bug #18173: The feature in `$LOADED_FEATURES` is loaded again
https://bugs.ruby-lang.org/issues/18173#change-93978

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Backport: 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE
----------------------------------------
In general, the feature name registered in `$LOADED_FEATURES` (e.g. "enumerator.so", "thread.rb", and so on) is expected not to be loaded again.

But, as @ko1 reported, when a feature name is added to the variable during another file is required, it will be loaded again.

```shell
$ echo 'raise __FILE__' > target.rb
$ echo '$" << "target.rb"' > provide.rb
$ ruby -r./provide.rb target.rb 
target.rb:1:in `<main>': target.rb (RuntimeError)
```




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:106260] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again
  2021-09-16  9:47 [ruby-core:105294] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again nobu (Nobuyoshi Nakada)
  2021-10-03  7:33 ` [ruby-core:105526] " nagachika (Tomoyuki Chikanaga)
@ 2021-11-24 10:35 ` usa (Usaku NAKAMURA)
  1 sibling, 0 replies; 3+ messages in thread
From: usa (Usaku NAKAMURA) @ 2021-11-24 10:35 UTC (permalink / raw)
  To: ruby-core

Issue #18173 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.6: REQUIRED, 2.7: REQUIRED, 3.0: DONE to 2.6: REQUIRED, 2.7: DONE, 3.0: DONE

ruby_2_7 61a02168f7ba353a2838f2783f291a816d7e0c90 merged revision(s) ddb32e66160ab50849419ef7c7ac584913b79c34.

----------------------------------------
Bug #18173: The feature in `$LOADED_FEATURES` is loaded again
https://bugs.ruby-lang.org/issues/18173#change-94880

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Backport: 2.6: REQUIRED, 2.7: DONE, 3.0: DONE
----------------------------------------
In general, the feature name registered in `$LOADED_FEATURES` (e.g. "enumerator.so", "thread.rb", and so on) is expected not to be loaded again.

But, as @ko1 reported, when a feature name is added to the variable during another file is required, it will be loaded again.

```shell
$ echo 'raise __FILE__' > target.rb
$ echo '$" << "target.rb"' > provide.rb
$ ruby -r./provide.rb target.rb 
target.rb:1:in `<main>': target.rb (RuntimeError)
```




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-24 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16  9:47 [ruby-core:105294] [Ruby master Bug#18173] The feature in `$LOADED_FEATURES` is loaded again nobu (Nobuyoshi Nakada)
2021-10-03  7:33 ` [ruby-core:105526] " nagachika (Tomoyuki Chikanaga)
2021-11-24 10:35 ` [ruby-core:106260] " usa (Usaku NAKAMURA)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).