Vendor miniz 3.0.2 instead of downloading it

The release asset download returned HTTP 504 for hours and blocked the Windows
build. miniz (MIT) is two source files, so it now lives in third_party/miniz and
the public-tree check skips that unmodified third-party directory.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-11-08 11:19:02 +01:00
1 parent e01ac929ac
commit d2c5fade43
5 files changed
+9286 -5

No files matched your search

@@ -44,6 +44,8 @@ PRIVATE_DOCUMENTS = {
"PUBLIC_RELEASE_TODO.md", "chat.txt",
}
SOURCE_SUFFIXES = {".cpp", ".hpp", ".h", ".c", ".inc"}
# Unmodified third-party sources (miniz, MIT) keep their authors' own headers and are not ours to rewrite.
VENDORED_PREFIX = "third_party/"
SKIP_DIRECTORIES = {".git", "__pycache__", ".cache", "_deps", "node_modules"}
LEGACY_SYMBOLS = re.compile(
@@ -230,6 +232,8 @@ def scan_tree(root: Path):
findings = []
names = checked_files(root)
for name in names:
if name.startswith(VENDORED_PREFIX):
continue
path = root / name
if path.is_symlink():
findings.append(Finding(name, 0, "symlink-not-reviewed"))
@@ -255,6 +259,8 @@ def scan_history(root: Path):
metadata, name = entry.split(b"\t", 1)
mode, kind, object_id = metadata.decode().split()
path = name.decode("utf-8")
if path.startswith(VENDORED_PREFIX):
continue
if kind != "blob":
findings.append(Finding(path, 0, "unreviewed-history-object"))
continue