Skip to content

Commit

Permalink
tools: ignore vendor dir of builds when linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jharveyb committed Mar 4, 2024
1 parent 95d8f59 commit 734ebf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/check-go-version-dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion tools/check-go-version-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 734ebf1

Please sign in to comment.