Skip to content
Snippets Groups Projects

Properly compute files hashes during models publication

Merged Yoann Schneider requested to merge fix-publication-paths into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -55,7 +55,9 @@ def create_archive(path: DirPath) -> Tuple[Path, Hash, FileSize, Hash]:
for p in path.glob("**/*"):
x = p.relative_to(path)
tar.add(p, arcname=x, recursive=False)
file_list.append(p)
# Only keep files when computing the hash
if x.is_file():
file_list.append(x)
# Sort by path
file_list.sort()
Loading