We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 735e3f4 commit f26a892Copy full SHA for f26a892
1 file changed
scripts/check-ecosystem-boundaries.sh
@@ -4,11 +4,11 @@ set -euo pipefail
4
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
cd "$ROOT_DIR"
6
7
-violations="$(
8
- rg -n 'github\.com/GrayCodeAI/hawk/(internal/|shared/types)' \
9
- --glob '*.go' \
10
- . || true
11
-)"
+if command -v rg >/dev/null 2>&1; then
+ violations="$(rg -n 'github\.com/GrayCodeAI/hawk/(internal/|shared/types)' --glob '*.go' . || true)"
+else
+ violations="$(grep -rn --include='*.go' -E 'github\.com/GrayCodeAI/hawk/(internal/|shared/types)' . || true)"
+fi
12
13
if [[ -n "${violations}" ]]; then
14
echo "forbidden Hawk imports found:"
0 commit comments