Skip to content

Commit

Permalink
Merge pull request #42 from ypconstante/elixir-1.16-compatibility
Browse files Browse the repository at this point in the history
 Fix file detection paths in Elixir 1.16
  • Loading branch information
karolsluszniak authored Feb 29, 2024
2 parents c569d96 + 958ec3b commit fc5dfe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ex_check/check/compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ defmodule ExCheck.Check.Compiler do
defp prepare_detection_base({:file, name}, _, tool_opts) do
filename =
tool_opts
|> Keyword.get(:cd, ".")
|> Keyword.get(:cd, "")
|> Path.join(name)
|> Path.relative_to(".")
|> Path.relative_to_cwd()

{:file, filename}
end
Expand Down

0 comments on commit fc5dfe6

Please sign in to comment.