fix: accept only registered platforms

require_platform checks the registry instead of any platforms/<name>.yml:
verify --platform _shared reported 0/0 present and exited 0. --all and
--platform resolve through model.cliargs.selected_platforms in auto_fetch,
generate_truth, diff_truth, export_native and verify. The truth directory
is core.paths.TRUTH_DIR for its writer and its three readers, and the
remaining literal database and profile paths read core.paths and
add_repo_inputs.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 06:04:31 +01:00
1 parent a732e69251
commit ed19ae4198
15 files changed
+69 -67

No files matched your search

+2 -1
View File
@@ -21,6 +21,7 @@ Usage:
from __future__ import annotations
from core.paths import PLATFORMS_DIR
import argparse
import json
import subprocess
@@ -57,7 +58,7 @@ def main() -> int:
f"the release must be these files (default: the list attached to the release)",
)
parser.add_argument(
"--platforms-dir", default="platforms",
"--platforms-dir", default=PLATFORMS_DIR,
help="registry whose release_pack platforms each need a pack (default: %(default)s)",
)
parser.add_argument("--json", action="store_true", help="JSON output")