From 4402a19df63a1775eb54319c8a18383d78c884ca Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 27 Oct 2023 17:45:27 +0100 Subject: [PATCH] Fix ignore_directories not taking effect --- lib/bootsnap/load_path_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootsnap/load_path_cache.rb b/lib/bootsnap/load_path_cache.rb index 11f8a94..e735fa5 100644 --- a/lib/bootsnap/load_path_cache.rb +++ b/lib/bootsnap/load_path_cache.rb @@ -38,8 +38,8 @@ def setup(cache_path:, development_mode:, ignore_directories:, readonly: false) @loaded_features_index = LoadedFeaturesIndex.new - @load_path_cache = Cache.new(store, $LOAD_PATH, development_mode: development_mode) PathScanner.ignored_directories = ignore_directories if ignore_directories + @load_path_cache = Cache.new(store, $LOAD_PATH, development_mode: development_mode) @enabled = true require_relative("load_path_cache/core_ext/kernel_require") require_relative("load_path_cache/core_ext/loaded_features")