Skip to content

Commit

Permalink
ignore folders that are not actual modules in coverage check (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu authored Mar 11, 2024
1 parent 538be9b commit 8dd1587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/moduledirs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
if test -z "$(go env GOMOD)"; then
pwd
else
find . -type f -not -path '*/tools/*' -name go.mod -exec dirname '{}' \;
# Remove the folder internal/scripts ignore once
# https://github.com/golang/go/issues/65653 has been fixed
find . -type f -not -path '*/tools/*' \
-not -path '*/internal/*' -not -path '*/scripts/*' \
-name go.mod -exec dirname '{}' \;
fi

0 comments on commit 8dd1587

Please sign in to comment.