Closed GVisockas closed 10 months ago
@GVisockas Thanks for reporting this.
Whoever is producing the warning is assuming a certain call stack. There are gems that decorate Kernel#require
, so you cannot really know who is the one really loading csv
(or any of the ones triggering this).
So, nothing to do here, maybe report the warning is not accurate.
Oh, let me be more clear for people coming here without knowing this aspect of Zeitwerk.
Zeitwerk decorates Kernel#require
(here). Therefore, all require
calls pass through Zeitwerk. For require
calls in projects managed by loaders, Zeitwerk performs some logic, otherwise, it just forwards to the original, decorated require
transparently (mod stack traces).
That is, Zeitwerk is not using csv
by itself, it is just proxying the require
call of some code upwards actually using csv
.
Reviewing my nightly cron tasks I found a warning that
csv
is not to be a part of standard library from ruby3.4.0
. It is mentioned, though, that:Please ignore if this has been handled (as far as I have checked, it has not). Full message: