From 045e43f0f81c0dc952bf5d14b065bb0d7fa6c321 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Wed, 2 Dec 2026 10:11:41 +0000 Subject: [PATCH] fix(scripts): describe allow-sync keys as # A comment and the name-mismatch message still described the bare # key. Both now say #, and that the directory name is what finds the identity, through the root dependency entry's `path: plugins/`. Refs: #271 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- scripts/check-executables-allow-sync.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/check-executables-allow-sync.sh b/scripts/check-executables-allow-sync.sh index 5769b6b..6300a3a 100755 --- a/scripts/check-executables-allow-sync.sh +++ b/scripts/check-executables-allow-sync.sh @@ -385,7 +385,9 @@ expected_key() { # Per-package checks # --------------------------------------------------------------------------- # EXPECTED: plugin dir names whose manifest is usable; the key each needs is -# '#' because a usable manifest's name: equals its dir name. +# '#'. The dir name is what finds the identity: it is +# matched against the `path: plugins/` of a root dependency entry, which +# is why a usable manifest's name: must equal it. EXPECTED=() for plugin in ${READABLE[@]+"${READABLE[@]}"}; do error="$(fact e "$plugin")" @@ -403,8 +405,9 @@ for plugin in ${READABLE[@]+"${READABLE[@]}"}; do if [[ "$name" != "$plugin" ]]; then echo "FAIL: plugins/$plugin/apm.yml declares name: '${name}', which does not match its directory '$plugin'." >&2 - echo " Why: executables.allow keys use the package name; with the two disagreeing this gate" >&2 - echo " cannot tell which '#' key root apm.yml should carry." >&2 + echo " Why: the '#' key is found through the directory name, which this gate" >&2 + echo " matches against root apm.yml's 'path: plugins/' entry; with name: disagreeing" >&2 + echo " it cannot tell which package the key should be for." >&2 echo " Fix: make plugins/$plugin/apm.yml's name: equal '$plugin', or rename the directory (read by $READER)." >&2 FAILED=1 continue