Read cached snapshot of versions and hashes of plugins from previous run.
(manager: BuildManager)
| 1735 | |
| 1736 | |
| 1737 | def read_plugins_snapshot(manager: BuildManager) -> dict[str, str] | None: |
| 1738 | """Read cached snapshot of versions and hashes of plugins from previous run.""" |
| 1739 | snapshot = _load_json_file( |
| 1740 | PLUGIN_SNAPSHOT_FILE, |
| 1741 | manager, |
| 1742 | log_success="Plugins snapshot (cached) ", |
| 1743 | log_error="Could not load plugins snapshot: ", |
| 1744 | ) |
| 1745 | if snapshot is None: |
| 1746 | return None |
| 1747 | if not isinstance(snapshot, dict): |
| 1748 | manager.log(f"Could not load plugins snapshot: cache is not a dict: {type(snapshot)}") # type: ignore[unreachable] |
| 1749 | return None |
| 1750 | return snapshot |
| 1751 | |
| 1752 | |
| 1753 | def read_quickstart_file( |
no test coverage detected
searching dependent graphs…