mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 06:51:05 +01:00
fsync cache file (#1094)
This commit is contained in:
@@ -81,6 +81,8 @@ def _download(url: str, local_path: Path) -> Optional[int]:
|
||||
return int(response.code)
|
||||
with local_path.open("wb") as f:
|
||||
shutil.copyfileobj(response, f)
|
||||
# Run fsync because of "Text file busy" in GH Actions.
|
||||
os.fsync(f.fileno())
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user