fix: support helm v4 beside v3 and remove -c flag for helm version as it does nothing

features.
This commit is contained in:
hmilkovi
2025-11-15 23:21:35 +01:00
parent 77b3446b36
commit 54848c1049
12 changed files with 218 additions and 65 deletions

View File

@@ -22,8 +22,18 @@ seen=()
KUSTOMIZE_ROOT=$(pwd)
export KUSTOMIZE_ROOT
# Build find command with multiple -not -path options
find_cmd="find . -name go.mod -not -path \"./site/*\""
if [[ -n "$skip_pattern" ]]; then
# Split skip_pattern by | and add -not -path for each
IFS='|' read -ra PATTERNS <<< "$skip_pattern"
for pattern in "${PATTERNS[@]}"; do
find_cmd+=" -not -path \"$pattern\""
done
fi
# verify all modules pass validation
for i in $(find . -name go.mod -not -path "./site/*" -not -path "$skip_pattern"); do
for i in $(eval "$find_cmd"); do
pushd .
cd $(dirname "$i");