"prepare_scripts": sorted(
base64.b64encode(script.read_bytes()).decode() for script in self.prepare_scripts
),
- # We don't use the full path here since tests will often use temporary directories for the output
- # directory which would trigger a rebuild every time.
- "tools_tree": self.tools_tree.name if self.tools_tree else None,
- "tools_tree_distribution": self.tools_tree_distribution,
- "tools_tree_release": self.tools_tree_release,
- "tools_tree_mirror": self.tools_tree_mirror,
- "tools_tree_packages": sorted(self.tools_tree_packages),
+ # Statting the root directory of the tools tree isn't fool proof but should be good enough.
+ "tools_tree": [self.tools_tree, self.tools_tree.stat().st_mtime_ns] if self.tools_tree else [],
}
def to_dict(self) -> dict[str, Any]: