From 734ebf181f8d26136d50a4fa0c43ee05472fad2a Mon Sep 17 00:00:00 2001 From: Jonathan Harvey-Buschel Date: Wed, 28 Feb 2024 17:34:20 -0500 Subject: [PATCH] tools: ignore vendor dir of builds when linting --- tools/check-go-version-dockerfile.sh | 2 +- tools/check-go-version-yaml.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/check-go-version-dockerfile.sh b/tools/check-go-version-dockerfile.sh index 6a310ddea..4e4fe635d 100755 --- a/tools/check-go-version-dockerfile.sh +++ b/tools/check-go-version-dockerfile.sh @@ -38,7 +38,7 @@ target_go_version="$1" while IFS= read -r -d '' file; do target_files+=("$file") done < <(find . \ - -path ./vendor -prune -o \ + -path ".**/vendor" -prune -o \ -type f \ \( -name "*.Dockerfile" -o -name "Dockerfile" \) \ -print0 \ diff --git a/tools/check-go-version-yaml.sh b/tools/check-go-version-yaml.sh index 9fac2678f..6091dee42 100755 --- a/tools/check-go-version-yaml.sh +++ b/tools/check-go-version-yaml.sh @@ -49,7 +49,7 @@ target_go_version="$1" while IFS= read -r -d '' file; do target_files+=("$file") done < <(find . \ - -path ./vendor -prune -o \ + -path ".**/vendor" -prune -o \ -type f \ \( -name "*.yaml" -o -name "*.yml" \) \ -print0 \