···4545 path = registry_info["path"]
4646 packageToml = toml.load(registry_path / path / "Package.toml")
47474848- all_versions = toml.load(registry_path / path / "Versions.toml")
4848+ versions_toml = registry_path / path / "Versions.toml"
4949+ all_versions = toml.load(versions_toml)
4950 if not pkg["version"] in all_versions: continue
5051 version_to_use = all_versions[pkg["version"]]
5252+5353+ if not "nix-sha256" in version_to_use:
5454+ raise KeyError(f"""Couldn't find nix-sha256 hash for {pkg["name"]} {pkg["version"]} in {versions_toml}. This might indicate that we failed to prefetch the hash when computing the augmented registry. Was there a relevant failure in {registry_path / "failures.yml"}?""")
51555256 repo = packageToml["repo"]
5357 f.write(f""" "{uuid}" = {{