diff options
author | Benedikt Reinartz <filmor@gmail.com> | 2023-03-30 07:50:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 07:50:00 +0200 |
commit | 8d6354b6340ea77a5d182d1223e3768c413156a1 (patch) | |
tree | dfb3c376a54aae1e835576c618c89d1ac6287557 | |
parent | ce67dd63c7c0fd141f30c391e3a3fce06bb6be31 (diff) | |
download | elixir-8d6354b6340ea77a5d182d1223e3768c413156a1.tar.gz |
Make symlink_or_copy a no-op if source is same as target (#12502)
-rw-r--r-- | lib/mix/lib/mix/utils.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mix/lib/mix/utils.ex b/lib/mix/lib/mix/utils.ex index e71c0eb39..c67b1db29 100644 --- a/lib/mix/lib/mix/utils.ex +++ b/lib/mix/lib/mix/utils.ex @@ -466,6 +466,10 @@ defmodule Mix.Utils do Expects source and target to be absolute paths as it generates a relative symlink. """ + def symlink_or_copy(path, path) do + :ok + end + def symlink_or_copy(source, target) do if File.exists?(source) do # Relative symbolic links on Windows are broken |