Skip to content

Commit 37f7180

Browse files
Merge pull request #1306 from douglasjacobsen/copy-deref-symlinks
Update stage methods to dereference links
2 parents 06550be + aa72ad9 commit 37f7180

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ramble/ramble/language/application_language.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,13 @@ def _execute_stage_files(app):
483483

484484
# Prepare the core staging command
485485
if stage_method == "rsync":
486-
stage_cmd = f"rsync -r {src} {dst}"
486+
stage_cmd = f"rsync -Lr {src} {dst}"
487487
elif stage_method == "hard_link":
488488
stage_cmd = f"ln {src} {dst}"
489489
elif stage_method == "symbolic_link":
490490
stage_cmd = f"ln -s {src} {dst}"
491491
else: # stage_method == "cp"
492-
stage_cmd = f"cp -r {src} {dst}"
492+
stage_cmd = f"cp -Lr {src} {dst}"
493493

494494
template = [stage_cmd]
495495

lib/ramble/ramble/test/application_language.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ class BrokenWorkloadDefaults(ExecutableApplication): # noqa: F405
397397
@pytest.mark.parametrize(
398398
"stage_method,template_contents",
399399
[
400-
("cp", "cp -r src"),
401-
("rsync", "rsync -r src"),
400+
("cp", "cp -Lr src"),
401+
("rsync", "rsync -Lr src"),
402402
("symbolic_link", "ln -s src"),
403403
("hard_link", "ln src"),
404404
],

0 commit comments

Comments
 (0)