Skip to content

Commit 42b0485

Browse files
authored
fix: warn on error rather than fail in update workflow (#1842)
1 parent 3149885 commit 42b0485

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tools/update_native_dependencies.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import hashlib
77
import re
88
import subprocess
9+
import sys
910
from collections import defaultdict
1011
from pathlib import Path
1112

@@ -206,9 +207,15 @@ def main():
206207
_update_sqlite(args.dry_run)
207208
_update_tcltk(args.dry_run)
208209
for tool in ["autoconf", "automake", "libtool", "git", "openssl", "curl"]:
209-
_update_with_root(tool, args.dry_run)
210+
try:
211+
_update_with_root(tool, args.dry_run)
212+
except Exception as e:
213+
print(f"::warning::update: {e}\n", file=sys.stderr)
210214
for tool in ["libxcrypt"]:
211-
_update_with_gh(tool, args.dry_run)
215+
try:
216+
_update_with_gh(tool, args.dry_run)
217+
except Exception as e:
218+
print(f"::warning::update: {e}\n", file=sys.stderr)
212219

213220

214221
if __name__ == "__main__":

0 commit comments

Comments
 (0)