From 938ec06d286d36ff43216c950b1b27586035362c Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 22 Nov 2026 21:35:01 +0000 Subject: [PATCH] docs(lessons): a local-path install skips remote package validation #205 merged two packages that installed from a local path but not from the remote. Record the gap and how to check remote installability before merging a new package. Refs: #188 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN --- LESSONS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index fbe362a..55a97c2 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -145,3 +145,7 @@ The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the ## 2026-11-13 — Hook-exported GIT_DIR turned test fixtures loose on the real repo Under the `run-tests` pre-push hook, git exports `GIT_DIR` to the hook, so a bats fixture's `git -C "$tmp" init/commit/update-ref` hit this repo instead of its temp dir: 84 failures, `core.bare=true` and an emptied index on every push. The 2026-07-05 "repo root is a bare checkout" entry was likely this bug's symptom, not the repo's real shape. Fix: `tests/run-tests.sh` unsets git's repo-locating env vars before any suite runs. Rule: a test that builds its own repo must never inherit the caller's git environment. + +## 2026-11-22 — A local-path install skips the validation a remote install runs + +#205 shipped `ansible` and `k8s` as `apm.yml`-only skeletons after a scratch consumer installed all four new packages from `../pkgs/` with exit 0. Fetched from the remote, the same packages fail: apm accepts a remote subdirectory only when it has `.apm/`, declared dependencies or a `skills/` bundle (`detect_package_type` in `apm_cli/models/validation.py`). `gitops` failed too, through its dependency on `k8s`. So `main` published uninstallable packages until #206 added `.apm/.gitkeep`. A green local-path install says nothing about whether consumers can install. Fix: before merging a new or restructured package, push the branch and install it with `git:`/`path:`/`ref: `, or run `validate_apm_package` on a `git archive` export. `file://` URLs are rejected in the object form, so they can't stand in for the remote. -- 2.43.0