mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
hack/validate: allow forcing validation
This introduces a FORCE_VALIDATE environment variable, which allows forcing some validation steps, even if no changes were detected. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -8,7 +8,7 @@ validate_vendor_diff(){
|
||||
files=( $(validate_diff --diff-filter=ACMR --name-only -- 'vendor.conf' 'vendor/' || true) )
|
||||
unset IFS
|
||||
|
||||
if [ ${#files[@]} -gt 0 ]; then
|
||||
if [ -n "${TEST_FORCE_VALIDATE:-}" ] || [ ${#files[@]} -gt 0 ]; then
|
||||
# recreate vendor/
|
||||
vndr
|
||||
# check if any files have changed
|
||||
|
||||
Reference in New Issue
Block a user