mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 12:58:51 -06:00
refactor: installer pins keyed by bootstrap file
installer_build.pins read the site's served names from model.guides, which loads the guides YAML at import. Since the launcher builders read the pin through it, the installer doc build pulled pyyaml in, and the Python 3.8 installer job has none.
This commit is contained in:
1 parent
9ac3145c5e
commit
753d39ffe3
4 files changed
+6
-9
No files matched your search
@@ -7,7 +7,6 @@ from pathlib import Path
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
from installer_build.pins import PIN, installer_sha256
|
||||
from model.guides import SH_NAME
|
||||
|
||||
|
||||
PORT_DIR = "retrobios"
|
||||
@@ -24,7 +23,7 @@ PACKS_TABLE = "packs.txt"
|
||||
|
||||
def pinned_installer_sha256(root: Path = REPO_ROOT) -> str:
|
||||
"""The SHA-256 install.sh accepts for install.py."""
|
||||
found = PIN[SH_NAME].search((root / "install.sh").read_text(encoding="utf-8"))
|
||||
found = PIN["install.sh"].search((root / "install.sh").read_text(encoding="utf-8"))
|
||||
if found is None:
|
||||
raise ValueError("install.sh pins no installer SHA-256")
|
||||
return found.group(1)
|
||||
|
||||
Reference in new issue
Block a user