Compare commits

..
1 Commits
Author SHA1 Message Date
alexmandClaude faa71d23fe Include the library submodule in the shared zip
Test / test (push) Failing after 7s
scripts/package.py zipped what git tracks, which for library/ is only the
submodule pointer, so a shared zip could not run tests/library.test.mjs.
It now adds the files the library checkout tracks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
2026-10-05 12:24:03 +00:00
+4
View File
@@ -27,6 +27,10 @@ def main() -> int:
return 1
dirty = bool(git("status", "--porcelain").strip())
names = sorted(set(git("ls-files", "-z", "--cached", "--others", "--exclude-standard").split("\0")) - {""})
# pplus-library (library/) is a submodule: take the files its checkout tracks, so the zip tests on its own
if (ROOT / "library" / ".git").exists():
tracked = subprocess.run(["git", "ls-files", "-z"], cwd=ROOT / "library", check=True, capture_output=True, text=True).stdout
names += [f"library/{n}" for n in tracked.split("\0") if n]
names = [n for n in names if (ROOT / n).is_file()]
out_dir = ROOT / "package"
out_dir.mkdir(exist_ok=True)