Skip to content

Commit

Permalink
Support absolute paths in ignore_directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Oct 27, 2023
1 parent c4fb919 commit 96aeb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootsnap/load_path_cache/path_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def walk(absolute_dir_path, relative_dir_path, &block)

absolute_path = "#{absolute_dir_path}/#{name}"
if File.directory?(absolute_path)
next if ignored_directories.include?(name)
next if ignored_directories.include?(name) || ignored_directories.include?(absolute_path)

if yield relative_path, absolute_path, true
walk(absolute_path, relative_path, &block)
Expand Down

0 comments on commit 96aeb9c

Please sign in to comment.