fix(scripts): describe allow-sync keys as <identity>#<version>
A comment and the name-mismatch message still described the bare <name>#<version> key. Both now say <identity>#<version>, and that the directory name is what finds the identity, through the root dependency entry's `path: plugins/<dir>`. Refs: #271 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
5089856c0d
commit
045e43f0f8
1 file changed
+6
-3
@@ -385,7 +385,9 @@ expected_key() {
|
||||
# Per-package checks
|
||||
# ---------------------------------------------------------------------------
|
||||
# EXPECTED: plugin dir names whose manifest is usable; the key each needs is
|
||||
# '<dir>#<version>' because a usable manifest's name: equals its dir name.
|
||||
# '<identity>#<version>'. The dir name is what finds the identity: it is
|
||||
# matched against the `path: plugins/<dir>` 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 '<name>#<version>' key root apm.yml should carry." >&2
|
||||
echo " Why: the '<identity>#<version>' key is found through the directory name, which this gate" >&2
|
||||
echo " matches against root apm.yml's 'path: plugins/<dir>' 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
|
||||
|
||||
Reference in new issue
Block a user