From 843b710779a81868bdb97e6f578d08661a40fc6f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Aug 2025 01:25:31 +0200 Subject: [PATCH] buildHomeAssistantComponent: restrict manifest locations we consider A repo can contain many more manifest.json files, as demonstrated by the hacs component. Fixes: #429790 --- .../manifest-requirements-check-hook.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.sh b/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.sh index cfe61f4308a6..3a96d75e2915 100644 --- a/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.sh +++ b/pkgs/servers/home-assistant/build-custom-component/manifest-requirements-check-hook.sh @@ -13,7 +13,13 @@ function manifestCheckPhase() { args+=" --ignore-version-requirement ${package}" done - readarray -d '' manifests < <(find . -type f -name "manifest.json" -print0) + readarray -d '' manifests < <( + find . -type f \( \ + -path ./manifest.json \ + -o -path './custom_components/*/manifest.json' \ + -o -path './custom_components/*/integrations/*/manifest.json' \ + \) -print0 + ) if [ "${#manifests[@]}" -gt 0 ]; then # shellcheck disable=SC2068