mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user