diff --git a/tools/azure-rest-api-specs-examples-automation/go/validate.py b/tools/azure-rest-api-specs-examples-automation/go/validate.py index 1c17a349b58..397fac30e66 100644 --- a/tools/azure-rest-api-specs-examples-automation/go/validate.py +++ b/tools/azure-rest-api-specs-examples-automation/go/validate.py @@ -79,7 +79,7 @@ def vet(self) -> GoVetResult: logging.info("Run goimports") # goimports - cmd = ["go", "install", "golang.org/x/tools/cmd/goimports@latest"] + cmd = ["go", "install", "golang.org/x/tools/cmd/goimports@v0.24.0"] check_call(cmd, tmp_dir_name) cmd = ["goimports", "-w", "."]