We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getdeps
1 parent 238ca3f commit b7f2483Copy full SHA for b7f2483
build/fbcode_builder/getdeps/load.py
@@ -315,6 +315,16 @@ def _compute_project_hash(self, manifest) -> str:
315
316
manifest.update_hash(hasher, ctx)
317
318
+ # If a patchfile is specified, include its contents in the hash
319
+ patchfile = manifest.get("build", "patchfile", ctx=ctx)
320
+ if patchfile:
321
+ patchfile_path = os.path.join(
322
+ self.build_opts.fbcode_builder_dir, "patches", patchfile
323
+ )
324
+ if os.path.exists(patchfile_path):
325
+ with open(patchfile_path, "rb") as f:
326
+ hasher.update(f.read())
327
+
328
dep_list = manifest.get_dependencies(ctx)
329
for dep in dep_list:
330
dep_manifest = self.load_manifest(dep)
0 commit comments