Skip to content

Commit

Permalink
Attempt to fix infinite copy into existing folder
Browse files Browse the repository at this point in the history
Looks like robocopy is confused what to do about symlinks
  • Loading branch information
malfet committed May 4, 2023
1 parent aafb942 commit 860d444
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion windows/internal/clone.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@echo off

:: The conda and wheels jobs are seperated on Windows, so we don't need to clone again.
:: The conda and wheels jobs are separated on Windows, so we don't need to clone again.
if exist "%NIGHTLIES_PYTORCH_ROOT%" (
:: Attempt to fix infinite copy of ittapi recursive symlinks on non-ephemeral runners
if exist pytorch (
rmdir /s /q pytorch
)
robocopy "%NIGHTLIES_PYTORCH_ROOT%" pytorch\ /e /np /nfl
cd pytorch
)
Expand Down

0 comments on commit 860d444

Please sign in to comment.