package: block init with unsafe entries

This commit is contained in:
Hermes Agent
2026-09-03 06:30:01 +00:00
parent f8089f0758
commit 98b8d311c3
6 changed files with 11 additions and 5 deletions
+6
View File
@@ -131,6 +131,12 @@ def main():
if "BAD package name: ../bad" not in out:
fail(f"package lock unsafe-name diagnostic was unclear:\n{out}")
rc, out = run([str(EXE), "package", "init"], work)
if rc == 0:
fail("package init must not report success while unsafe package names remain in claro.project")
if "BAD package name: ../bad" not in out:
fail(f"package init existing unsafe-name diagnostic was unclear:\n{out}")
rc, out = run([str(EXE), "package", "add", "science"], work)
if rc == 0:
fail("package add must not report success while unsafe package names remain in claro.project")