feat: cut this repo over to apm-cli 0.39.3 pinned with uv (#271) #275
@@ -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