From cad505820087105b409e53e2d891b758667a777a Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Fri, 28 Oct 2022 11:23:33 -0400 Subject: [PATCH] Stop adding requires for everything in the graph --- hack/update-vendor.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hack/update-vendor.sh b/hack/update-vendor.sh index 42b17681dab..4e0f694bb0d 100755 --- a/hack/update-vendor.sh +++ b/hack/update-vendor.sh @@ -92,10 +92,8 @@ function ensure_require_replace_directives_for_all_dependencies() { popd >/dev/null 2>&1 done - # Add explicit require directives for indirect dependencies - go list -m -json all \ - | jq -r 'select(.Main != true) | select(.Indirect == true) | "-require \(.Path)@\(.Version)"' \ - | xargs -L 100 go mod edit -fmt + # tidy to ensure require directives are added for indirect dependencies + go mod tidy } function print_go_mod_section() {