diff --git a/Makefile b/Makefile index ae2d6f8..78022bd 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ check-sdk-pins: echo "replace directive found in $$dir/go.mod" >&2; \ exit 1; \ fi; \ - if ! grep -Eq '^[[:space:]]*$(SDK_MODULE)[[:space:]]+v[0-9]+\.[0-9]+\.[0-9]+' "$$dir/go.mod"; then \ + if ! grep -Eq '^[[:space:]]*(require[[:space:]]+)?$(SDK_MODULE)[[:space:]]+v[0-9]+\.[0-9]+\.[0-9]+' "$$dir/go.mod"; then \ echo "$(SDK_MODULE) is not pinned in $$dir/go.mod" >&2; \ exit 1; \ fi; \