diff --git a/Makefile b/Makefile index e2656e14..db88e71b 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,14 @@ $(BIN_DIR): # Local binary paths OAPI_CODEGEN ?= $(BIN_DIR)/oapi-codegen +OAPI_CODEGEN_VERSION ?= v2.5.1 AIR ?= $(BIN_DIR)/air WIRE ?= $(BIN_DIR)/wire XCADDY ?= $(BIN_DIR)/xcaddy # Install oapi-codegen $(OAPI_CODEGEN): | $(BIN_DIR) - GOBIN=$(BIN_DIR) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest + GOBIN=$(BIN_DIR) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@$(OAPI_CODEGEN_VERSION) # Install air for hot reload $(AIR): | $(BIN_DIR)