From b53beb0aca812b1c3b2a50d5b4fc1da8fdfce66f Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Mon, 19 Aug 2024 02:57:41 +0100 Subject: [PATCH] tooling: run `go mod tidy` prior to running unit tests after generation --- scripts/automation-generate-go-sdk.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/automation-generate-go-sdk.sh b/scripts/automation-generate-go-sdk.sh index f5e5d81b9fc..aab7b2b940c 100755 --- a/scripts/automation-generate-go-sdk.sh +++ b/scripts/automation-generate-go-sdk.sh @@ -70,6 +70,7 @@ function runGoSDKUnitTests { echo "Running unit tests within the SDK codebase.." cd "${outputDirectory}/${sdkToGenerate}" + go mod tidy go test -v ./... cd "${DIR}"