Module: RequireHooks::Bootsnap::LegacyCacheExt
- Defined in:
- lib/require-hooks/mode/bootsnap.rb
Overview
Bootsnap before 1.24 does not support compiler namespaces.
Instance Method Summary collapse
Instance Method Details
#fetch(path, cache_dir: self.cache_dir) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/require-hooks/mode/bootsnap.rb', line 33 def fetch(path, cache_dir: self.cache_dir) ctx = RequireHooks.context_for(path) cache_dir = File.join(cache_dir, RequireHooks::Bootsnap.version_hash) unless ctx.empty? super end |