Skip to content

Commit ec1ede9

Browse files
committed
use more portable --date argument for touch command used in reproducible tarballs
1 parent d3c0127 commit ec1ede9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/filetools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,8 +2779,8 @@ def get_source_tarball_from_git(filename, target_dir, git_config):
27792779
tar_cmd = [
27802780
# print names of all files and folders excluding .git directory
27812781
'find', repo_name, '-name ".git"', '-prune', '-o', '-print0',
2782-
# reset access and modification timestamps to epoch 0 (equivalent to --mtime in GNU tar)
2783-
'-exec', 'touch', '--date=@0', '{}', r'\;',
2782+
# reset access and modification timestamps to epoch 0
2783+
'-exec', 'touch', '--date=1970-01-01T00:00:00.00Z', '{}', r'\;',
27842784
# reset file permissions of cloned repo (equivalent to --mode in GNU tar)
27852785
'-exec', 'chmod', '"go+u,go-w"', '{}', r'\;', '|',
27862786
# sort file list (equivalent to --sort in GNU tar)

0 commit comments

Comments
 (0)