Skip to content

Commit c7d763b

Browse files
committed
Update external dependency check
1 parent a98f4c6 commit c7d763b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ vet:
1919
go vet sigs.k8s.io/json
2020

2121
@echo "checking for external dependencies"
22-
@deps=$$(go mod graph); \
22+
@deps=$$(go list -f '{{ if not (or .Standard .Module.Main) }}{{.ImportPath}}{{ end }}' -deps sigs.k8s.io/json/... || true); \
2323
if [ -n "$${deps}" ]; then \
2424
echo "only stdlib dependencies allowed, found:"; \
2525
echo "$${deps}"; \

0 commit comments

Comments
 (0)