mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 22:47:02 +01:00
The previous commit broke `./lint_python.sh` from the repo root. That path is a symlink into meta/, and `dirname` does not resolve symlinks, so SCRIPT_DIR became the repo root and the new `source "$SCRIPT_DIR/lib/..."` line pointed at a lib/ that does not exist -- an instant exit under set -euo pipefail. The bug was latent before the split: the same unresolved SCRIPT_DIR only fed PROJECT_ROOT, so a root-path run degraded quietly. Adding a source line is what turned a wrong value into a hard failure. It was invisible because every check I ran used `bash meta/lint_python.sh` -- the one entry point that could not fail. Both paths are now verified: `./lint_python.sh` exits 0 through the symlink, and the direct invocation still diffs byte-identical against the pre-split baseline. No CI job, hook or wrapper calls it, so nothing automated was broken in the interim. Recorded in docs/shell-split-verification.md as its own trap, with the commands to enumerate a script's other entry points before splitting it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY |
||
|---|---|---|
| .. | ||
| explanations | ||
| superpowers | ||
| app-split-recipes.md | ||
| device-owner-wipe-checklist.md | ||
| dns-filtering-parked.md | ||
| mcp-shortlist.html | ||
| python-split-recipes.md | ||
| shared-checkout-safety.md | ||
| shell-split-recipes.md | ||
| shell-split-verification.md | ||
| syncyomi-restore-runbook.md | ||