From 829c23cdfadb15be204fa5623fafaaee5c8177d0 Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 25 Jun 2024 11:46:21 -0500 Subject: [PATCH] Run go mod tidy as part of generate (#755) Run 'go mod tidy' as part of 'make generate'. This will ensure that it is run prior to passing CI as any modifications it makes will cause 'make checkgenerate' to fail. Signed-off-by: Philip K. Warren --- Makefile | 3 ++- go.sum | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d0315e71..5d97b584 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ export PATH := $(BIN):$(PATH) export GOBIN := $(abspath $(BIN)) COPYRIGHT_YEARS := 2021-2024 LICENSE_IGNORE := --ignore /testdata/ -BUF_VERSION := 1.32.2 +BUF_VERSION := 1.34.0 .PHONY: help help: ## Describe useful make targets @@ -78,6 +78,7 @@ lintfix: $(BIN)/golangci-lint $(BIN)/buf ## Automatically fix some lint errors .PHONY: generate generate: $(BIN)/buf $(BIN)/protoc-gen-go $(BIN)/protoc-gen-connect-go $(BIN)/license-header ## Regenerate code and licenses + go mod tidy rm -rf internal/gen PATH="$(abspath $(BIN))" buf generate license-header \ diff --git a/go.sum b/go.sum index 20d548f0..8fccdeec 100644 --- a/go.sum +++ b/go.sum @@ -4,7 +4,5 @@ golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=