From faa71d23fe0006ebea0a3c81d8fde9106ac528e3 Mon Sep 17 00:00:00 2001 From: Alex Maldonado Date: Mon, 5 Oct 2026 12:24:03 +0000 Subject: [PATCH] Include the library submodule in the shared zip 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 Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ --- scripts/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/package.py b/scripts/package.py index a705cda..8c432ff 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -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)