Keep generated Linux plugin registries out of build identity

This commit is contained in:
2026-11-08 16:50:15 +00:00
parent 28b7eaeee4
commit 761ff021fe
4 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ def digest(kind, app=APP, extra=()):
paths = [root] if root.is_file() else sorted(p for p in root.rglob("*") if p.is_file()) if root.is_dir() else []
for path in paths:
relative = path.relative_to(app)
if SKIPPED.intersection(relative.parts):
if SKIPPED.intersection(relative.parts) or (relative.parts[:2] == ("linux", "flutter") and relative.name in {
"generated_plugin_registrant.cc", "generated_plugin_registrant.h", "generated_plugins.cmake"}):
continue
hasher.update(b"\0path\0" + str(relative).encode() + b"\0")
hasher.update(path.read_bytes())