Skip to content

Commit

Permalink
Do not use protocols during consolidation to avoid races (#13856)
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Sep 24, 2024
1 parent 6cd46d7 commit dcf31be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/elixir/lib/protocol.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcf31be

Please sign in to comment.