Fix symbolic links not copied from cached VCS into working copy. Windows platform will result with default copy content instead of original symbolic link (issue #89)

This commit is contained in:
allegroai 2022-01-23 10:42:11 +02:00
parent fa1307e62c
commit 363aaeaba8

View File

@ -663,7 +663,9 @@ def clone_repository_cached(session, execution, destination):
vcs.pull() vcs.pull()
rm_tree(destination) rm_tree(destination)
shutil.copytree(Text(cached_repo_path), Text(clone_folder)) shutil.copytree(Text(cached_repo_path), Text(clone_folder),
symlinks=select_for_platform(linux=True, windows=False),
ignore_dangling_symlinks=True)
if not clone_folder.is_dir(): if not clone_folder.is_dir():
raise CommandFailedError( raise CommandFailedError(
"copying of repository failed: from {} to {}".format( "copying of repository failed: from {} to {}".format(