Write snapshot of versions and hashes of currently active plugins.
(manager: BuildManager)
| 1724 | |
| 1725 | |
| 1726 | def write_plugins_snapshot(manager: BuildManager) -> None: |
| 1727 | """Write snapshot of versions and hashes of currently active plugins.""" |
| 1728 | snapshot = json_dumps(manager.plugins_snapshot) |
| 1729 | if ( |
| 1730 | not manager.metastore.write(PLUGIN_SNAPSHOT_FILE, snapshot) |
| 1731 | and manager.options.cache_dir != os.devnull |
| 1732 | ): |
| 1733 | manager.errors.set_file(_cache_dir_prefix(manager.options), None, manager.options) |
| 1734 | manager.error(None, "Error writing plugins snapshot", blocker=True) |
| 1735 | |
| 1736 | |
| 1737 | def read_plugins_snapshot(manager: BuildManager) -> dict[str, str] | None: |
no test coverage detected
searching dependent graphs…