def write_digest(self, digest: Digest, *, path_prefix: str | None = None) -> None: """Write a digest to disk, relative to the build root.""" if path_prefix and PurePath(path_prefix).is_absolute(): raise ValueError( f"The `path_prefix` {path_prefix} must be a relative path, as the engine writes " "the digest relative to the build root.") native_engine.write_digest(self.py_scheduler, self.py_session, digest, path_prefix or "")
def write_digest(self, digest: Digest, *, path_prefix: str | None = None) -> None: """Write a digest to disk, relative to the test's build root. Access the written files by using `os.path.join(rule_runner.build_root, <relpath>)`. """ native_engine.write_digest(self.scheduler.py_scheduler, self.scheduler.py_session, digest, path_prefix or "")