MCPcopy Create free account
hub / github.com/base/base / current_resolved

Function current_resolved

etc/scripts/local/reth_release.py:312–326  ·  view source on GitHub ↗

Return existing `[[resolved]]` pairs from the pin manifest, if any.

(root: Path)

Source from the content-addressed store, hash-verified

310
311
312def current_resolved(root: Path) -> list[tuple[str, str]]:
313 """Return existing `[[resolved]]` pairs from the pin manifest, if any."""
314 path = root / MANIFEST_REL
315 if not path.exists():
316 return []
317 data = tomllib.loads(path.read_text(encoding="utf-8"))
318 pairs: list[tuple[str, str]] = []
319 for entry in data.get("resolved") or []:
320 if not isinstance(entry, dict):
321 continue
322 pr = entry.get("pr")
323 release = entry.get("release")
324 if isinstance(pr, str) and isinstance(release, str):
325 pairs.append((pr, release))
326 return pairs
327
328
329def render_manifest(

Callers 1

prepare_releaseFunction · 0.85

Calls 3

appendMethod · 0.80
existsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected