From d0b4690269d967bdd641dca773229fd5ef34bf1f Mon Sep 17 00:00:00 2001 From: Slavko Rihtaric Date: Thu, 29 Aug 2024 09:32:07 +0200 Subject: [PATCH] Add goModule config --- .github/sdk-gen-config.json | 3 ++- codegen-template/go.mod.mustache | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/sdk-gen-config.json b/.github/sdk-gen-config.json index cbad0ae..fefdf4e 100644 --- a/.github/sdk-gen-config.json +++ b/.github/sdk-gen-config.json @@ -1,5 +1,6 @@ { "packageVersion": "{VERSION}", "packageName": "databox", - "goVersion":"1.22" + "goVersion":"1.22", + "goModule": "github.com/databox/databox-go" } diff --git a/codegen-template/go.mod.mustache b/codegen-template/go.mod.mustache index adcb766..1dc85bf 100644 --- a/codegen-template/go.mod.mustache +++ b/codegen-template/go.mod.mustache @@ -1,4 +1,4 @@ -module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}} +module {{goModule}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}} go {{goVersion}}