Do not use protocols during consolidation to avoid races (#13856)

This commit is contained in:
José Valim
2024-09-24 17:22:08 +02:00
committed by GitHub
parent 6cd46d76ee
commit dcf31bed0e
+2 -1
View File
@@ -498,7 +498,8 @@ defmodule Protocol do
defp extract_matching_by_attribute(paths, prefix, callback) do
for path <- paths,
path = to_charlist(path),
# Do not use protocols as they may be consolidating
path = if(is_list(path), do: path, else: String.to_charlist(path)),
file <- list_dir(path),
mod = extract_from_file(path, file, prefix, callback),
do: mod