fix: validate package manifest versions

This commit is contained in:
Hermes Agent
2026-09-04 04:42:01 +00:00
parent dcc3e947ad
commit eec5dba646
6 changed files with 13 additions and 3 deletions
+7
View File
@@ -131,6 +131,13 @@ def main():
if "MISSING package manifest: math-tools" not in out:
fail(f"Package manifest-version diagnostic was unclear:\n{out}")
manifest_path.write_text(manifest, encoding="utf-8")
manifest_path.write_text(manifest.replace("version: 1", "version: 10"), encoding="utf-8")
rc, out = run([str(EXE), "package", "doctor"], work)
if rc == 0:
fail("package doctor must reject a package version that only starts with the supported version")
if "BAD package version: math-tools" not in out:
fail(f"Package manifest version diagnostic was unclear:\n{out}")
manifest_path.write_text(manifest, encoding="utf-8")
rc, out = run([str(EXE), "package", "doctor"], work)
if rc != 0: