From 08805a08f3032c9dff6de17042febbd3de324d3d Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 4 Mar 2025 15:13:02 +0100 Subject: [PATCH] build: no need to list all go modules It is not clear why listing all modules is useful. Some modules have internal versions (Kubernetes modules), and the command reports those as a warning with an error exit code. Signed-off-by: Niels de Vos --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index 50ba3846b..66ed0a618 100644 --- a/Makefile +++ b/Makefile @@ -110,8 +110,6 @@ go-test-api: check-env mod-check: check-env @echo 'running: go mod verify' @go mod verify && [ "$(shell sha512sum go.mod)" = "`sha512sum go.mod`" ] || ( echo "ERROR: go.mod was modified by 'go mod verify'" && false ) - @echo 'running: go list -mod=readonly -m all' - @go list -mod=readonly -m all 1> /dev/null scripts/golangci.yml: scripts/golangci.yml.in rm -f scripts/golangci.yml.buildtags.in