Skip to content

Commit f461d8e

Browse files
authored
🔊 Log zip command to figure out error (#449)
1 parent c6f3a8d commit f461d8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc_builder/commands/push.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def push_command_add(args):
6666
zip_file_path_without_ext = create_zip_name(library_name, doc_version_folder, with_ext=False)
6767
# eg create ./transformers/v4.0.zip with '/transformers/v4.0/*' file architecture inside
6868
# Use subprocess.run instead of shutil.make_archive to avoid corrupted files, see https://github.com/huggingface/doc-builder/issues/348
69-
subprocess.run(["zip", "-r", zip_file_path_without_ext, path_docs_built], capture_output=True, check=True)
69+
print(f"Running zip command: zip -r {zip_file_path_without_ext} {path_docs_built}")
70+
subprocess.run(["zip", "-r", zip_file_path_without_ext, path_docs_built], check=True)
7071
zip_file_path = create_zip_name(library_name, doc_version_folder)
7172

7273
api = HfApi()

0 commit comments

Comments
 (0)