From 0f231f621dc7ebcb71ac9a70a6790440f467144c Mon Sep 17 00:00:00 2001 From: XiaoPei Liu Date: Fri, 22 Dec 2023 10:02:17 +0800 Subject: [PATCH 1/2] Change pkg/apis and pkg/client in go.mod In go.mod, change to use local pkg/apis and pkg/client. --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index c571d4a6a..2b427c9d0 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/prometheus/client_golang v1.16.0 github.com/sirupsen/logrus v1.9.0 github.com/stretchr/testify v1.8.2 - github.com/vmware-tanzu/nsx-operator/pkg/apis v1.0.0 + github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.1 github.com/vmware-tanzu/nsx-operator/pkg/client v0.0.0-00010101000000-000000000000 github.com/vmware-tanzu/vm-operator/api v1.8.2 github.com/vmware/govmomi v0.27.4 From 537b080e159f8a6cf876d3afc2dcf09d6fe8be6b Mon Sep 17 00:00:00 2001 From: XiaoPei Liu Date: Wed, 27 Dec 2023 09:37:42 +0800 Subject: [PATCH 2/2] Use commit id in go.mod Now we just use commit id in go.mod, will create tag and use tag when released. --- go.mod | 2 +- pkg/client/go.mod | 2 +- pkg/client/go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 2b427c9d0..0bb1a975d 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/prometheus/client_golang v1.16.0 github.com/sirupsen/logrus v1.9.0 github.com/stretchr/testify v1.8.2 - github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.1 + github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.0-20231227030711-34390278f3cd github.com/vmware-tanzu/nsx-operator/pkg/client v0.0.0-00010101000000-000000000000 github.com/vmware-tanzu/vm-operator/api v1.8.2 github.com/vmware/govmomi v0.27.4 diff --git a/pkg/client/go.mod b/pkg/client/go.mod index 4030a6181..b78c2f36d 100644 --- a/pkg/client/go.mod +++ b/pkg/client/go.mod @@ -3,7 +3,7 @@ module github.com/vmware-tanzu/nsx-operator/pkg/client go 1.21 require ( - github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.1 + github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.0-20231227030711-34390278f3cd k8s.io/apimachinery v0.28.4 k8s.io/client-go v0.28.4 ) diff --git a/pkg/client/go.sum b/pkg/client/go.sum index b627b69fc..32eecd8ef 100644 --- a/pkg/client/go.sum +++ b/pkg/client/go.sum @@ -78,8 +78,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.1 h1:z5hr4FZm2AGkmkwqRjk1QQr5JUBdU7YzN+t5mKaa76s= -github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.1/go.mod h1:j8vSYBnN83WIaLIW6BKD2IHiI0MMpd4lPxefpA00CzI= +github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.0-20231227030711-34390278f3cd h1:rl/Yg5m2WrecTBHvf1ZSg/lMBOguIWOeaCf1uo5ARTQ= +github.com/vmware-tanzu/nsx-operator/pkg/apis v0.0.0-20231227030711-34390278f3cd/go.mod h1:Q4JzNkNMvjo7pXtlB5/R3oME4Nhah7fAObWgghVmtxk= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=