hack/validate/module-replace: relax check

Do not require replace rules to be added if there's no code-changes
in the module. Note that changes in api/swagger.yaml may result in
changes in generated code, but this should be checked separate from
the swagger itself.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-12-02 14:59:11 +01:00
parent 3964729182
commit 7687298e0a

View File

@@ -4,7 +4,15 @@ set -e
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPTDIR}/.validate"
api_files=$(validate_diff --diff-filter=ACMR --name-only -- 'api/' || true)
api_files=$(
validate_diff --diff-filter=ACMR --name-only -- \
'api/' \
':(exclude)api/README.md' \
':(exclude)api/swagger.yaml' \
':(exclude)api/docs/' \
|| true
)
client_files=$(validate_diff --diff-filter=ACMR --name-only -- 'client/' || true)
has_errors=0