fix: decide offline once before the release check

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:42:19 +01:00
1 parent 1f9633c7e5
commit c07a47362e
3 files changed
+24 -5

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ def resolve_file(
# exactly what the flag forbids.
return (path, status) if path else (None, "not_found")
cached = _verified_asset(
name, declared, file_entry, OFFLINE if offline is None else offline,
name, declared, file_entry, run_is_offline(offline),
)
if cached:
return cached, "release_asset"