Skip to content

Commit

Permalink
Exclude directories from external resources (#548)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Moreau <[email protected]>
Co-authored-by: Adrien Moreau <[email protected]>
  • Loading branch information
adrienmo and Adrien Moreau authored Jun 27, 2023
1 parent 5aa3f18 commit 6d64c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustler_mix/lib/rustler/compiler/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ defmodule Rustler.Compiler.Config do
path
|> Path.join("**/*")
|> Path.wildcard()
|> Enum.reject(&String.starts_with?(&1, "#{path}/target/"))
|> Enum.reject(&(String.starts_with?(&1, "#{path}/target/") or File.dir?(&1)))
end

defp local_crate?(package) do
Expand Down

0 comments on commit 6d64c16

Please sign in to comment.